A Django application to store your previous history and action in your session engine
A Django application to store your previous history and action using differents backends.
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.
You will be also able to record previous action which needed login required.
For example, if your user is not logged in your application and try to execute an action which required authentication (e.g.: an user clicks on a button to follow another user), this application will record parameters (even on POST) and execute the last action when your user will be successfully logged.
Thanks to oleiade for the name.
Either check out the package from GitHub or it pull from a release via PyPI
pip install django-backward
Add backward.middleware.BackwardMiddleware to your MIDDLEWARE_CLASSES
MIDDLEWARE_CLASSES = ( 'backward.middleware.BackwardMiddleware', )
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')), )
Set settings.LOGIN_REDIRECT_URL as mentioned in your urls.py for example
# settings.py LOGIN_REDIRECT_URL = '/backward/login/redirect/'
Configure your Session engine if you are using the default backend
Use the decorator backward.decorators.login_required if your views need authentication
The backend used to store information.
The default backend class is backward.backends.session.SessionBackend.
Store information in request.session using your Session engine
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size django-backward-0.3.6.tar.gz (7.9 kB)||File type Source||Python version None||Upload date||Hashes View|