-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the session key configurable. #71
Conversation
Add a new setting TZ_SESSION_KEY which defaults to the current detected_tz. This will allow integration to other django projects that make assumptions about timezones and sessions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found a couple of typos. Otherwise, LTGM. Could this update CHANGES.txt
as well?
.. code-block:: python | ||
|
||
# Session key to use, defaults to "detected_tz" | ||
TZ_SESSOIN_KEY = "my-session-key" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TZ_SESSOIN_KEY = "my-session-key" | |
TZ_SESSION_KEY = "my-session-key" |
@@ -6,3 +6,7 @@ | |||
# Defaults to top Internet using countries. | |||
|
|||
TZ_DETECT_COUNTRIES = getattr(settings, "TZ_DETECT_COUNTRIES", ("CN", "US", "IN", "JP", "BR", "RU", "DE", "FR", "GB")) | |||
|
|||
|
|||
# Session yey to use to store the detected timezone |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Session yey to use to store the detected timezone | |
# Session key to use to store the detected timezone |
Add a new setting TZ_SESSION_KEY which defaults to the current detected_tz. This will allow integration to other django projects that make assumptions about timezones and sessions.