A Django application to store your previous history and action in your session engine
Project description
A Django application to store your previous history and action in your session engine.
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.
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
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
Use the decorator backward.decorators.login_required if your views need authentication
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-backward-0.2.tar.gz
.
File metadata
- Download URL: django-backward-0.2.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b9fa9bd2f172d8e358de515140f06f549de14062d2196d57c75edfcc501ee22 |
|
MD5 | eb9140e226fb4641453df53bed745d7e |
|
BLAKE2b-256 | e7a201a042c623b769ed87d5f56e014c9d7dd649a8a7b707f034387c96bb0ef3 |