Metadata-Version: 1.1
Name: django-maintain
Version: 1.0.0
Summary: Django Maintain Notice
Home-page: https://github.com/Brightcells/django-maintain
Author: Hackathon
Author-email: kimi.huang@brightcells.com
License: UNKNOWN
Description: ===============
        django-maintain
        ===============
        
        Installation
        ============
        
        ::
        
            pip install django-maintain
        
        
        Usage
        =====
        
        ::
        
            # Django-Maintain Settings
            DJANGO_SITE_MAINTAIN = False  # Default ``False``, Modify ``True`` when maintain
            DJANGO_SITE_MAINTAIN_NOTICE_URL = ''
        
        
        Settings.py
        ===========
        
        ::
        
            # Use `MIDDLEWARE_CLASSES` prior to Django 1.10
            MIDDLEWARE = [
                ...
                # 'competion.middleware.SiteMaintainMiddleware',  # hasattr(request, 'user') == False
                'django.contrib.auth.middleware.AuthenticationMiddleware',
                'competion.middleware.SiteMaintainMiddleware',  # hasattr(request, 'user') == True
                ...
            ]
        
        
Keywords: Django Maintain Notice
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Office/Business :: Financial :: Spreadsheet
