Im a newbe - GREAT tutorial - THANK YOU -- Ive clearly made a mistake but cant sort it out
I get this error trying to sign up a user - the session is unavailable because no secret key was set. Set the secret_key on the application to something unique and secret. I am running the site locally for now so my path to the project is /home/gf/FlaskApp/Flaskapp - I have the flaskapp.wsgi file in the /home/gf/FlaskApp directory - I modified this line in the file sys.path.insert(0,"/home/gf/FlaskApp/") - not sure what I missed - any and all help is greatly appreciated - THANK YOU
You must be logged in to post. Please login or register an account.
Have you set a secret key? If you're running local and still want to have sessions, you need the secret key. You can just add
app.secret_key = 'whateveryouwantyourkeytobe'
-Harrison 7 years ago
Last edited 7 years ago
You must be logged in to post. Please login or register an account.
THANK YOU for the reply - I did set the secret key in the flaskapp.wsgi file but I'm not sure it is being accessed within the tutorial software I've created bu following along, I must have missed it - I have gone back and looked to see where it should be accessed and don't find any reference to it in the code I've done for the tutorial - where would that normally be imported/accessed - again thank you!
-glennf 7 years ago
You must be logged in to post. Please login or register an account.
The WSGI file would be for a server setting. If running locally only, your machine wont actually know to look for info there.
-Harrison 7 years ago
You must be logged in to post. Please login or register an account.