Skip to main content

An application to store your previous history with multiple backends

Project description

Build Status

An application to store your previous history in your session engine backend.

With this application you will be able to redirect your users to their previous location when they tried to access a page where the login is required.

Thanks to oleiade for the name.

Compatibility

This library is compatible with:

  • python2.6, django1.4

  • python2.6, django1.5

  • python2.6, django1.6

  • python2.7, django1.4

  • python2.7, django1.5

  • python2.7, django1.6

  • python3.3, django1.5

  • python3.3, django1.6

Installation

  1. Either check out the package from GitHub or it pull from a release via PyPI

    pip install django-backward
  2. Add backward.middleware.BackwardMiddleware to your MIDDLEWARE_CLASSES

    MIDDLEWARE_CLASSES = (
        'backward.middleware.BackwardMiddleware',
    )
  3. Add backward.urls to your urls.py

    # urls.py
    
    from django.conf.urls import patterns, url, include
    
    urlpatterns = patterns(
        '',
    
        url(r'^backward/', include('backward.urls')),
    )
  4. Set settings.LOGIN_REDIRECT_URL as mentioned in your urls.py for example

    # settings.py
    
    LOGIN_REDIRECT_URL = '/backward/login/redirect/'
  5. Configure your Session engine

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-backward-0.1.tar.gz (4.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page