session storage path setting doesn't exist
Question:
I am trying to run a django project and the following error is displayed: ‘The session storage path ‘/home/billy/myapps/my_server/../my_server/sessions’ doesn’t exist. Please set your SESSION_FILE_PATH setting to an existing directory in which Django can store session data.’
I have tried googling out whats the problem but u have not found a specific answer to my problem. Any assistance is highly appreciated.
Thanks
Answers:
The error message looks pretty clear to me. Solution 0:
-
Create the directory /home/billy/myapps/my_server/sessions
-
Figure what user runs Django, ie. with ps aux
command,
-
Give rwx permissions to that user on that directory.
Solution 1: use database backed sessions – in that case remove settings.SESSION_ENGINE
to restore the default.
The path ‘/home/billy/myapps//my_server/sessions’ must exist. And process of your application server must have corresponding rights to work with it.
I am trying to run a django project and the following error is displayed: ‘The session storage path ‘/home/billy/myapps/my_server/../my_server/sessions’ doesn’t exist. Please set your SESSION_FILE_PATH setting to an existing directory in which Django can store session data.’
I have tried googling out whats the problem but u have not found a specific answer to my problem. Any assistance is highly appreciated.
Thanks
The error message looks pretty clear to me. Solution 0:
-
Create the directory
/home/billy/myapps/my_server/sessions
-
Figure what user runs Django, ie. with
ps aux
command, -
Give rwx permissions to that user on that directory.
Solution 1: use database backed sessions – in that case remove settings.SESSION_ENGINE
to restore the default.
The path ‘/home/billy/myapps//my_server/sessions’ must exist. And process of your application server must have corresponding rights to work with it.