How do I set up a session?
When trying to use cookies, I am trying to follow the vendor documentation. I've seen this suggestion in the documentation Set SESSION_ENGINE to "django.contrib.sessions.backends.cache" for a simple caching
session store.
, but I couldn't find a place to change my session settings. How can I set up a session mechanism?
Have you finished the tutorial yet? If not, this is a very good place to start.
All Django settings are in the project/settings.py
file .
Update for comment:
The default settings are in django/conf/global_settings.py
. DO NOT modify this file! All settings there can be overridden in the project file settings.py
.
Just try to insert settings.py
SESSION_ENGINE = "django.contrib.sessions.backends.cache"