mirror of https://github.com/interlegis/sigi.git
Guilherme Gondim
16 years ago
2 changed files with 10 additions and 1 deletions
@ -0,0 +1,9 @@ |
|||
try: |
|||
# try use maintenancemode middleware from django-maintenancemode project |
|||
import maintenancemode.middleware |
|||
class MaintenanceModeMiddleware(maintenancemode.middleware.MaintenanceModeMiddleware): |
|||
pass |
|||
except ImportError: |
|||
# otherwise, a thin wrapper for middleware |
|||
class MaintenanceModeMiddleware(object): |
|||
pass |
Loading…
Reference in new issue