Skip to content

Commit

Permalink
Fixed two django-maintenance-mode related bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
niconoe committed Mar 26, 2024
1 parent e353ab6 commit 6d65ef8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v1.7.3 (2024-03-26)

- Fixed two bugs related to the maintenance mode: https://github.com/riparias/gbif-alert/issues/277 and https://github.com/riparias/gbif-alert/issues/278

# v1.7.2 (2024-03-25)

- WFS server: the (internal) species_id field is now available
Expand Down
File renamed without changes.
6 changes: 4 additions & 2 deletions djangoproject/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,12 @@
MAINTENANCE_MODE_IGNORE_URLS = ()
MAINTENANCE_MODE_IGNORE_TESTS = False
MAINTENANCE_MODE_REDIRECT_URL = None
MAINTENANCE_MODE_TEMPLATE = "503.html"
MAINTENANCE_MODE_GET_TEMPLATE_CONTEXT = None
MAINTENANCE_MODE_TEMPLATE = "dashboard/503.html"
MAINTENANCE_MODE_GET_CONTEXT = None
MAINTENANCE_MODE_STATUS_CODE = 503
MAINTENANCE_MODE_RETRY_AFTER = 3600
MAINTENANCE_MODE_LOGOUT_AUTHENTICATED_USER = False
MAINTENANCE_MODE_RESPONSE_TYPE = "html"

# Logging: unfortunately for us, I am not able to override the default logging config as suggested in Django's documentation (changes are ignored)
# This is similar to https://stackoverflow.com/questions/62334688/django-logger-not-logging-but-all-other-loggers-work
Expand Down

0 comments on commit 6d65ef8

Please sign in to comment.