Put website in read-only mode for maintenance.
pip install django-readonly==0.1.2
Put your website into read-only mode for maintanance. It blocks any POST requests and signs users out. It doesn't lock any database transactions (check out https://github.com/streeter/django-db-readonly for that).
pip install django-readonly
'readonly.middleware.ReadOnlyMiddleware',
to MIDDLEWARE_CLASSES
{% if request.read_only %}<p>Website is currently in read-only mode.</p>{% endif %}