{ "info": { "author": "Florent Messa", "author_email": "florent.messa@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Utilities" ], "description": "django-backward\n===============\n\n.. image:: https://secure.travis-ci.org/thoas/django-backward.png?branch=master\n :alt: Build Status\n :target: http://travis-ci.org/thoas/django-backward\n\nA Django application to store your previous history and action using differents\nbackends.\n\nWith this application you will be able to redirect your users to their previous\nlocation when they tried to access a page where the login is required.\n\n.. image:: http://cl.ly/image/371E2R0L3n2h/backward_redirect.png\n\nYou will be also able to record previous action which needed login required.\n\nFor example, if your user is not logged in your application and try to execute\nan action which required authentication (e.g.: an user clicks on a button to follow another user),\nthis application will record parameters (even on POST) and execute the last action\nwhen your user will be successfully logged.\n\n.. image:: http://cl.ly/image/3B2E0H2M0j1C/backward_action.png\n\nThanks to `oleiade `_ for the name.\n\nInstallation\n------------\n\n1. Either check out the package from GitHub_ or it pull from a release via PyPI ::\n\n pip install django-backward\n\n\n2. Add ``backward.middleware.BackwardMiddleware`` to your ``MIDDLEWARE_CLASSES`` ::\n\n MIDDLEWARE_CLASSES = (\n 'backward.middleware.BackwardMiddleware',\n )\n\n3. Add ``backward.urls`` to your ``urls.py`` ::\n\n # urls.py\n\n from django.conf.urls import patterns, url, include\n\n urlpatterns = patterns(\n '',\n\n url(r'^backward/', include('backward.urls')),\n )\n\n4. Set ``settings.LOGIN_REDIRECT_URL`` as mentioned in your ``urls.py`` for example ::\n\n # settings.py\n\n LOGIN_REDIRECT_URL = '/backward/login/redirect/'\n\n5. Configure your `Session engine `_ if you are using the default backend\n\n6. Use the decorator ``backward.decorators.login_required`` if your views need authentication\n\n\nConfiguration\n-------------\n\n``BACKEND_BACKEND_CLASS``\n.........................\n\nThe backend used to store information.\n\nThe default backend class is ``backward.backends.session.SessionBackend``.\n\n``backwards.backends.session.SessionBackend``\n.............................................\n\nStore information in ``request.session`` using your `Session engine `_\n\n``backwards.backends.session.CookieBackend``\n............................................\n\nStore information in ``request.COOKIES``, you can configure a few things:\n\n- ``BACKWARD_MAX_AGE``: the age used to set an expiration date to the cookie\n- ``BACKWARD_COOKIE_DOMAIN``: the domain name used for the cookie\n- ``BACKWARD_COOKIE_SECURE``: if this is set to True, the cookie will be marked as **secure**, which means browsers may ensure that the cookie is only sent under an HTTPS connection.\n\n.. _GitHub: https://github.com/thoas/django-backward", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/thoas/django-backward", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-backward", "package_url": "https://pypi.org/project/django-backward/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-backward/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/thoas/django-backward" }, "release_url": "https://pypi.org/project/django-backward/0.3.6/", "requires_dist": null, "requires_python": null, "summary": "A Django application to store your previous history and action in your session engine", "version": "0.3.6" }, "last_serial": 1872225, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "397f13b5f87876face6b30ca0e9520e6", "sha256": "d788170756ea1cb61c5e6ff0a02f1c4fa05e511d2353b1a05f80d1e8227578eb" }, "downloads": -1, "filename": "django-backward-0.1.tar.gz", "has_sig": true, "md5_digest": "397f13b5f87876face6b30ca0e9520e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4870, "upload_time": "2014-01-06T09:43:35", "url": "https://files.pythonhosted.org/packages/40/86/897f58d25ee6d78fc11baa5de4b57a293c5b3cadcb86668461c56a8e92b2/django-backward-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "eb9140e226fb4641453df53bed745d7e", "sha256": "2b9fa9bd2f172d8e358de515140f06f549de14062d2196d57c75edfcc501ee22" }, "downloads": -1, "filename": "django-backward-0.2.tar.gz", "has_sig": true, "md5_digest": "eb9140e226fb4641453df53bed745d7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6761, "upload_time": "2014-01-14T10:49:35", "url": "https://files.pythonhosted.org/packages/e7/a2/01a042c623b769ed87d5f56e014c9d7dd649a8a7b707f034387c96bb0ef3/django-backward-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "9a22817fbf7ed3d44d08bfd112337b5b", "sha256": "bd7d092842c0840252154e46873ee6a150846abca04fdef259c07421ba3af4bb" }, "downloads": -1, "filename": "django-backward-0.2.1.tar.gz", "has_sig": true, "md5_digest": "9a22817fbf7ed3d44d08bfd112337b5b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6785, "upload_time": "2014-03-11T17:02:39", "url": "https://files.pythonhosted.org/packages/7f/20/9b24954b3a28236c0fa6045352a49552809c0f519c7a4e2c2761d45661a2/django-backward-0.2.1.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "b3e6e79f6bd7247cc95b702ad2859673", "sha256": "0ca42d100fbe820d2ba7ea1e0872aecb92621a2b0272858550fb0e3b181c4e5b" }, "downloads": -1, "filename": "django-backward-0.3.tar.gz", "has_sig": true, "md5_digest": "b3e6e79f6bd7247cc95b702ad2859673", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7860, "upload_time": "2014-04-25T12:32:48", "url": "https://files.pythonhosted.org/packages/25/1a/1f379e3d72f1992c47e0db2066e7a86e59ecf2d5bb470ca99473b086895b/django-backward-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "ad54816d729dd494902ad395e6b42e38", "sha256": "5105a44e0fb8bc088372b1f8dcadb983638b9bc0e13c3264bb6e7975cae77945" }, "downloads": -1, "filename": "django-backward-0.3.1.tar.gz", "has_sig": true, "md5_digest": "ad54816d729dd494902ad395e6b42e38", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7901, "upload_time": "2014-04-28T12:44:48", "url": "https://files.pythonhosted.org/packages/cf/d1/72e31deaa54db73c10fcbfff71ed87b2e3a23046c5b2fe90819af68d926e/django-backward-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "cab0447e1a3a273d1043679473a53b24", "sha256": "5d17ad0e4c52e3335d373f12017e85cf41c43acfff5ed2c60fd25e75542125a5" }, "downloads": -1, "filename": "django-backward-0.3.2.tar.gz", "has_sig": true, "md5_digest": "cab0447e1a3a273d1043679473a53b24", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7930, "upload_time": "2014-04-28T14:29:19", "url": "https://files.pythonhosted.org/packages/cd/9f/5b15e1caf8fd73c47ddba9e1ae00758077f8ff38e5cb34007dca7b6e1fc9/django-backward-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "e54643394ab58ac4e89566868aec493d", "sha256": "b55d429d043424e6cd45812083d1c4a70710f2a1fa90e069d255062f8a3917e5" }, "downloads": -1, "filename": "django-backward-0.3.3.tar.gz", "has_sig": true, "md5_digest": "e54643394ab58ac4e89566868aec493d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7826, "upload_time": "2014-09-16T08:31:49", "url": "https://files.pythonhosted.org/packages/d2/09/23805dabae538a6bc9c541b826095752862fe6285fe5f7537a3445a97747/django-backward-0.3.3.tar.gz" } ], "0.3.4": [ { "comment_text": "", "digests": { "md5": "960ecfbb7b420edcc717cff4bfdea410", "sha256": "70be03863e1310ed37ea5c5720d9a1495bf11a11e4dc712e503bc26b2930167e" }, "downloads": -1, "filename": "django-backward-0.3.4.tar.gz", "has_sig": true, "md5_digest": "960ecfbb7b420edcc717cff4bfdea410", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7909, "upload_time": "2015-02-26T19:37:06", "url": "https://files.pythonhosted.org/packages/5b/d2/ed5c2159f4285e0a3b07c1fac3781c700b7f3b2a414c16fd71294974c7c5/django-backward-0.3.4.tar.gz" } ], "0.3.5": [ { "comment_text": "", "digests": { "md5": "729b0fb9efcfea4c6784d213f8be619c", "sha256": "ba6ee9c3fcec861324028f29562863ed3f06151cd9692a134caadf35257ce14e" }, "downloads": -1, "filename": "django-backward-0.3.5.tar.gz", "has_sig": true, "md5_digest": "729b0fb9efcfea4c6784d213f8be619c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8064, "upload_time": "2015-04-02T11:58:06", "url": "https://files.pythonhosted.org/packages/34/93/3b1b76956db7f1c08251dcad5bd62467d055b64eab20675b5322edaec038/django-backward-0.3.5.tar.gz" } ], "0.3.6": [ { "comment_text": "", "digests": { "md5": "d275964ffa54d336c894b2842a096f75", "sha256": "34899e6f98bb6db6fcaa1d4193752e11a5f51730983fb0d3735fd88764afb76d" }, "downloads": -1, "filename": "django-backward-0.3.6.tar.gz", "has_sig": true, "md5_digest": "d275964ffa54d336c894b2842a096f75", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7885, "upload_time": "2015-12-21T15:02:04", "url": "https://files.pythonhosted.org/packages/db/ad/d2cee58b310c00ab8a4093a48d74dbeb6123e5319b0afcd2564133149f1a/django-backward-0.3.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d275964ffa54d336c894b2842a096f75", "sha256": "34899e6f98bb6db6fcaa1d4193752e11a5f51730983fb0d3735fd88764afb76d" }, "downloads": -1, "filename": "django-backward-0.3.6.tar.gz", "has_sig": true, "md5_digest": "d275964ffa54d336c894b2842a096f75", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7885, "upload_time": "2015-12-21T15:02:04", "url": "https://files.pythonhosted.org/packages/db/ad/d2cee58b310c00ab8a4093a48d74dbeb6123e5319b0afcd2564133149f1a/django-backward-0.3.6.tar.gz" } ] }