Skip to content

Commit

Permalink
add session control to django settings (#2015)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkonie committed Sep 30, 2024
1 parent d9fa11f commit 3176882
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Added

- **General**
- Python v3.11 support (#1922, #1978)
- ``SESSION_COOKIE_AGE`` and ``SESSION_EXPIRE_AT_BROWSER_CLOSE`` Django settings (#2015)
- **Landingzones**
- REST API list view pagination (#1994)
- ``notify_email_zone_status`` user app setting (#1939)
Expand Down
11 changes: 8 additions & 3 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@
# ------------------------------------------------------------------------------
ROOT_URLCONF = 'config.urls'
WSGI_APPLICATION = 'config.wsgi.application'
# Location of root django.contrib.admin URL, use {% url 'admin:index' %}
ADMIN_URL = 'admin/'

# PASSWORD STORAGE SETTINGS
# ------------------------------------------------------------------------------
Expand Down Expand Up @@ -305,9 +307,12 @@
# SLUGLIFIER
AUTOSLUG_SLUGIFY_FUNCTION = 'slugify.slugify'

# Location of root django.contrib.admin URL, use {% url 'admin:index' %}
ADMIN_URL = 'admin/'

# The age of session cookies in seconds
SESSION_COOKIE_AGE = env.int('DJANGO_SESSION_COOKIE_AGE', 1209600)
# Whether to expire the session when the user closes their browser
SESSION_EXPIRE_AT_BROWSER_CLOSE = env.bool(
'DJANGO_SESSION_EXPIRE_AT_BROWSER_CLOSE', False
)

# Celery
# ------------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions docs_manual/source/sodar_release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Release for SODAR Core v1.0 upgrade, iRODS v4.3 upgrade and feature updates.
- Add opt-out settings for iRODS data request and zone status update emails
- Add REST API list view pagination
- Add Python v3.11 support
- Add session control in Django settings and environment variables
- Update minimum supported iRODS version to v4.3.3
- Update REST API versioning
- Update REST API views for OpenAPI support
Expand Down

0 comments on commit 3176882

Please sign in to comment.