~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to settings.py

  • Committer: franku
  • Date: 2018-10-01 16:01:40 UTC
  • mto: This revision was merged to the branch mainline in revision 501.
  • Revision ID: somal@arcor.de-20181001160140-6hc103drr9qwm4ia
set only csrf_cookie_age to none is enough

Show diffs side-by-side

added added

removed removed

Lines of Context:
333
333
###################
334
334
# Cookie settings #
335
335
###################
 
336
 
336
337
# See: https://docs.djangoproject.com/en/dev/ref/settings/#sessions
337
 
 
338
 
CSRF_USE_SESSIONS = True      # Store csrf in the session cookie
339
 
SESSION_COOKIE_SECURE = True  # Allow only https
 
338
CSRF_COOKIE_AGE = None
340
339
 
341
340
try:
342
341
    from local_settings import *