Metadata-Version: 1.1
Name: django_geoip_redirection
Version: 0.1.1
Summary: GeoIP based redirection middleware
Home-page: http://django_geoip_redirection.rtfd.org/
Author: Vinit Kumar
Author-email: vinit.kumar@changer.nl
License: MIT
Description: Django GeoIP Redirection
        ========================
        
        [![Build Status](https://travis-ci.org/vinitkumar/django_geoip_redirection.svg?branch=feature/add-plugin-doc)](https://travis-ci.org/vinitkumar/django_geoip_redirection)
        
        [![Coverage Status](https://coveralls.io/repos/vinitkumar/django_geoip_redirection/badge.png)](https://coveralls.io/r/vinitkumar/django_geoip_redirection)
        
        It is a GeoIP based redirection middleware that redirects the user on basis of
        geolocation of the user. It uses Maxmind's free version of geoip database.
        
        
        Using the middleware
        ====================
        
        In order to use the middleware include it into your middlewares list in the
        settings file:
        
        ```python
        MIDDLEWARE_CLASSES = (
          'django.contrib.sessions.middleware.SessionMiddleware',
          'django.middleware.csrf.CsrfViewMiddleware',
          'django.contrib.auth.middleware.AuthenticationMiddleware',
          'django.contrib.messages.middleware.MessageMiddleware',
          'django.middleware.locale.LocaleMiddleware',
          'django.middleware.doc.XViewMiddleware',
          'django.middleware.common.CommonMiddleware',
          # Uncomment the next line for simple clickjacking protection:
          # 'django.middleware.clickjacking.XFrameOptionsMiddleware',
          'cms.middleware.page.CurrentPageMiddleware',
          'cms.middleware.user.CurrentUserMiddleware',
          'cms.middleware.toolbar.ToolbarMiddleware',
          'cms.middleware.language.LanguageCookieMiddleware',
          'django_geoip_redirection.middleware.LocationMiddleWare',
        )
        ```
        And add the `django_geoip_redirection_` to list of INSTALLED APPS:
        
        ```python
        INSTALLED_APPS = (
          'django_geoip_redirection',
          ....
        )
        ```
        
        You would also need to place the `GeoIP.dat.dat` present inside the data folder to
        your project root directory.
        
        
        
        
        Running the Tests
        ------------------
        
        You can run the tests with via:
        
        ```bash
        python setup.py test
        make test
        make all
        python runtests.py
        ```
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Topic :: Software Development :: Libraries :: Python Modules
