-
Notifications
You must be signed in to change notification settings - Fork 3
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
Comments
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
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.
The text was updated successfully, but these errors were encountered: