Skip to content
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

add an easy possiblity to put sites in maintenance mode #1296

Closed
sennierer opened this issue Oct 16, 2024 · 0 comments · Fixed by #1395 · May be fixed by #1502
Closed

add an easy possiblity to put sites in maintenance mode #1296

sennierer opened this issue Oct 16, 2024 · 0 comments · Fixed by #1395 · May be fixed by #1502
Assignees

Comments

@sennierer
Copy link
Collaborator

when we do some data wrangling it would be good to have an easy possibility to put the sites in maintenance mode to avoid conflicting updates of data.

@b1rger b1rger self-assigned this Nov 14, 2024
b1rger added a commit that referenced this issue Nov 15, 2024
Add a MaintenanceMiddleware that allows to set APIS in maintenance mode.
Maintenance mode allows superusers to access the site, but all other
requests get a simple maintenance page as a response.
This can be enabled by adding
`apis_core.core.middleware.MaintenanceMiddleware` to
`settings.MIDDLEWARE`. To active the maintenance mode simply create a
`/tmp/apis_maintenance` file. To deactivate maintenance mode, remove
that file.

Closes: #1296
b1rger added a commit that referenced this issue Nov 19, 2024
Add a MaintenanceMiddleware that allows to set APIS in maintenance mode.
Maintenance mode allows superusers to access the site, but all other
requests get a simple maintenance page as a response.
This can be enabled by adding
`apis_core.core.middleware.MaintenanceMiddleware` to
`settings.MIDDLEWARE`. To active the maintenance mode simply create a
`apis_maintenance` file. To deactivate maintenance mode, remove
that file.

Closes: #1296
b1rger added a commit that referenced this issue Dec 17, 2024
Add a MaintenanceMiddleware that allows to set APIS in maintenance mode.
Maintenance mode allows superusers to access the site, but all other
requests get a simple maintenance page as a response.
This can be enabled by adding
`apis_core.core.middleware.MaintenanceMiddleware` to
`settings.MIDDLEWARE`. To active the maintenance mode simply create a
`apis_maintenance` file. To deactivate maintenance mode, remove
that file.

Closes: #1296
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants