-
-
Notifications
You must be signed in to change notification settings - Fork 54
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 banner for informate user hours and date of the maintenance #66
Comments
Hi @scwall, Frankly my idea was to add support to it using a simple setting: settings.MAINTENANCE_MODE_SCHEDULE = {
'sun': {'start':'01:00', 'end':'02:00'},
'mon': None,
'tue': None,
'wed': {'start':'01:00', 'end':'02:00'},
'thu': None,
'fri': None,
'sat': None,
}
# or this to schedule maintenance every day:
settings.MAINTENANCE_MODE_SCHEDULE = {
'*': {'start':'01:00', 'end':'02:00'},
} Now, looking at your suggestion, I understand the flexibility to manage maintenance schedule using the admin and also the necessity to send an email to users to warn them about the incoming maintenance (which needs a cronjob). Actually this library doesn't use database at all and I would prefer to keep it tiny and db free, but I also want to implement maintenance schedule in the best and flexible way... I take some time to think better about it, in the meanwhile any other idea/suggestion will be appreciated. |
Ok I understand, maybe adding an external yarml file for the hours, for don't modify settings file . Personally I will have to use a db, because I use docker (with dj cookie cutter) for the deployment of my projects. If I change the settings I will have to rebuild my image and redeploy it just to publish the time. For the use of a recurring stain: https://pypi.org/project/django-crontab/ is quite light. example maintenance.yml:
|
I close this issue because it is very similar to another one, everything related to maintenance mode schedule will be discussed in #64. |
Hello, I integrated a maintenance signalling system for a project, quickly. I thought it would be a good idea to have this system in django-maintenance-mode. Which allows you to signal users of maintenance hours. I am in the process of following up for an email sending with the scheduled maintenance to all users of the company.
(i'm use django solo : https://github.com/lazybird/django-solo for singleton model) but now several hours could be scheduled
models :
tags_maintenance:
and base.html
The text was updated successfully, but these errors were encountered: