Skip to content

Commit

Permalink
feat: add new settings for django42 support
Browse files Browse the repository at this point in the history
  • Loading branch information
UsamaSadiq committed Oct 5, 2023
1 parent 4f3f3b0 commit f0f5b28
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions notesserver/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,10 @@
'JWT_AUTH_REFRESH_COOKIE': 'edx-jwt-refresh-cookie',
'JWT_ALGORITHM': 'HS256',
}

CSRF_TRUSTED_ORIGINS = []

# Django 4.0+ uses zoneinfo if this is not set. We can remove this and
# migrate to zoneinfo after Django 4.2 upgrade. See more on following url
# https://docs.djangoproject.com/en/4.2/releases/4.0/#zoneinfo-default-timezone-implementation
USE_DEPRECATED_PYTZ = True

0 comments on commit f0f5b28

Please sign in to comment.