pieces of django-maintenance

pull/1/head
Raymond Yee 2012-05-17 13:28:48 -07:00
parent b233c5f03a
commit 04ec596dc1
4 changed files with 20 additions and 2 deletions

View File

@ -0,0 +1,11 @@
{% extends "base.html" %}
{% block content %}
<div class="js-main">
<h1>Unglue.it is currently undergoing maintenance</h1>
<p>Help us fix it by sending us feedback: <a href="mailto:support@gluejar.com">support@gluejar.com</a>.</p>
</div>
{% endblock %}

View File

@ -22,7 +22,7 @@ pytz
django-notification
git+ssh://git@github.com/Gluejar/boto.git@2.3.0
fabric
#git+git://github.com/agiliq/merchant.git#egg=django-merchant
paramiko
pyasn1
pycrypto
django-maintenancemode

View File

@ -12,7 +12,7 @@ django-debug-toolbar==0.8.5
django-endless-pagination==1.1
django-extensions==0.7.1
django-kombu==0.9.4
django-merchant==0.0.3a0
django-maintenancemode==0.10
django-nose-selenium==0.7.3
django-notification==0.2
django-picklefield==0.1.9

View File

@ -84,6 +84,7 @@ MIDDLEWARE_CLASSES = (
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'maintenancemode.middleware.MaintenanceModeMiddleware',
)
ROOT_URLCONF = 'regluit.urls'
@ -265,3 +266,9 @@ PAYMENT_PROCESSOR = 'amazon'
# a SECRET_KEY to be used for encrypting values in core.models.Key -- you should store in settings/local.py
SECRET_KEY = ''
# by default, we are not in maintenance mode -- set True in overriding settings files for maintenance mode
# http://pypi.python.org/pypi/django-maintenancemode/
MAINTENANCE_MODE = False
# Sequence of URL path regexes to exclude from the maintenance mode.
MAINTENANCE_IGNORE_URLS = {}