Replies: 2 comments 3 replies
-
In Django, no session cookie is set by default. The moment |
Beta Was this translation helpful? Give feedback.
1 reply
-
Changing SESSION_SERIALIZER: Given that a session cookie has been set, the setting has been changed, and the server restarted:
Running |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've made a minimal django site to test how NAV sessions work compared to how Django sessions work. I'm using this discussion-thread as a notebook.
To follow along, you need at minimum:
and
and comment out
'django.contrib.auth.context_processors.auth'
and'django.contrib.messages.context_processors.messages'
in TEMPLATES -> OPTIONS -> context_processors.in settings.py.
(It is necessary to remove
django.contrib.auth.context_processors.auth
because it needs thedjango.contrib.contenttypes
app installed which means lots of extra database tables. This is because the non-database backed userAnonynousUser
is in a file that importsContentType
fromdjango.contrib.contenttypes.models
...)Beta Was this translation helpful? Give feedback.
All reactions