This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
Django 503

An app to show 503 error page, while your django site is on maintenance.

Sometimes you just need to temporarily stop your site to do some maintenance,
maybe to run migrations, update packages, or something like that. Quick and easy solution is to set up
a 503 error page for all requests. It should show human-friendly text for your site visitors,
saying that site will be back online very soon, while you're working on it at the moment.
After maintenance is over you can promptly turn 503 error page off.

``503 Service Unavailable`` is a valid http response:

The server is currently unable to handle the request due to a temporary overloading or maintenance of the server.
The implication is that this is a temporary condition which will be alleviated after some delay.

It works well with search engine crawlers, your page index will stay intact if your maintenance doesn't last far too long.


Django-503 works with python>=2.5 and django>=1.2
Recommended way to install is pip::

pip install django-503

* Add ``django_503`` to ``INSTALLED_APPS`` in


* Add ``'django_503.middleware.MaintenanceMiddleware'`` to your ``MIDDLEWARE_CLASSES``
after session and auth middlewares like this::


* Run ``python syncdb``

* Make sure you use ``admin.autodiscover()`` to enable project ````.


You can turn on maintenance mode by changing app config via django admin interface.
It's located at url ``/admin/django_503/config/`` relative your site URL .
Setting `mainteneance` to True will turn 503 error page for regular users.
Admins will see a warning on top of every html page, stating site is on maintenance now,
so that they can still access site and not forget to switch 503 mode off.

Template overriding
* To change 503 error page looks you should override ``503.html`` template.
* To change admin warning message you should override ``admin_warning.html`` template.


To run app testsuite use::

python test django-503
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-503-0.1.tar.gz (5.4 kB) Copy SHA256 Checksum SHA256 Source Oct 3, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting