Skip to content

Commit

Permalink
Set message storage to session
Browse files Browse the repository at this point in the history
  • Loading branch information
norkans7 committed Apr 11, 2024
1 parent 7e9ffdd commit c7b2c4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ureport/settings.py.prod
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ ALLOWED_HOSTS = ['*']
SESSION_COOKIE_SECURE = True
SESSION_EXPIRE_AT_BROWSER_CLOSE = False
SESSION_COOKIE_AGE = 1209600 # 2 weeks
MESSAGE_STORAGE = "django.contrib.messages.storage.session.SessionStorage"

CSRF_COOKIE_SECURE = True
CSRF_COOKIE_SAMESITE = "Strict"
Expand Down
1 change: 1 addition & 0 deletions ureport/settings.py.staging
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ ALLOWED_HOSTS = ['.nyaruka.com', '.ureport.in']
SESSION_EXPIRE_AT_BROWSER_CLOSE = False
SESSION_COOKIE_SECURE = True
SESSION_COOKIE_AGE = 1209600 # 2 weeks
MESSAGE_STORAGE = "django.contrib.messages.storage.session.SessionStorage"

CSRF_COOKIE_SECURE = True
CSRF_COOKIE_SAMESITE = "Strict"
Expand Down

0 comments on commit c7b2c4a

Please sign in to comment.