You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to control the maintenance mode state using a model admin, you can create your own backend which reads/writes the state from/to a model field (you just need to override the get_value and set_value methods and set MAINTENANCE_MODE_STATE_BACKEND setting to the backend path, eg. yourapp.backends.MaintenanceModeAdminBackend.
Recently @paduszyk opened an issue about adding a maintenance mode toggle control in the admin, he was very kind and shared his solution, you can take inspiration from there if that is the solution you need.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
How exactly can we activate maintenance mode by admin panel?
I published my project with amazon elastic beanstalk and this process by settings.py will not be very useful for me.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions