cookiecutter-django icon indicating copy to clipboard operation
cookiecutter-django copied to clipboard

Consider adding a maintenance mode package

Open bluesurfer opened this issue 7 years ago • 5 comments

It would be nice to have a package or something that puts the website in maintenance mode. Some good choices that I found are:

  1. https://github.com/fabiocaccamo/django-maintenance-mode (at application level)
  2. https://github.com/alsoicode/django-maintenancemode-2 (at database level)

bluesurfer avatar Mar 17 '17 08:03 bluesurfer

Very good suggestion @bluesurfer. I like the second one more.

  • It is much 'DRYer' with less code.
  • It is 'Heroku' friendly.
  • Changing a 'checkbox' is easier in production than having to get onto the terminal as the super user.
  • You can hand this off to the client's DevOps team easily.

Of course it is also quite straight forward to add it to your project in the requirements folder.

Afrowave avatar Mar 17 '17 09:03 Afrowave

Once https://github.com/alsoicode/django-maintenancemode-2 supports Django 1.11, I'll make this happen.

pydanny avatar Apr 21 '17 14:04 pydanny

@pydanny

Fresh news: django-maintenancemode-2 now supports Django 1.11 :)

bluesurfer avatar Sep 04 '17 07:09 bluesurfer

I suggest that this is to be implemented as an optional feature, via use_maintenancemode for instance.

webyneter avatar Apr 02 '18 11:04 webyneter

What are the use cases when one need to put the website in maintenance mode?

The main (only) one I can think of is when I need to perform a database upgrade. While having this flag accessible from the admin is super flexible, it's not super useful in this case: if you need to take your database down, the flag isn't accessible.

browniebroke avatar Dec 16 '21 20:12 browniebroke

Nice suggestion but I don't think it's worth doing. There hasn't been a lot in interest which is telling me that it's not a very common use case. I don't really want to add an option either, we already have too many of them 😄

browniebroke avatar Jan 30 '23 23:01 browniebroke