{ "info": { "author": "Miloslav Pojman", "author_email": "miloslav.pojman@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "Django-urldecorators is a reusable Django application which allows apply\nview decorators and middleware components based on a requested URL.\n\nThis library is compatible with Django 1.4 and later. If you need to use\nolder Django versions (which receive no security updates or bugfixes) you\ncan install 0.4 version of django-urldecorators.\n\n\nInstallation and usage\n======================\n\n1) Run `python setup.py install` or add the `urldecorators` module to\n your `PYTHONPATH` (or use pip or easy_install).\n\n2) In `urls.py` file replace `from django.conf.urls import url, include`\n by `from urldecorators import url, include`\n\n3) Pass a list of decorators and/or middleware_classes as an argument\n to the `url` function.\n\nExample urls.py file: ::\n\n from urldecorators import url, include\n\n urlpatterns = [\n url(r'^private/$', include('example.private.urls'),\n decorators=['django.contrib.auth.decorators.login_required']),\n url(r'^articles/$', include('example.articles.urls'),\n middleware_classes=['django.middleware.cache.CacheMiddleware']),\n ]\n\n\nFor the example configuration and usage see the example project included\nin the repository. It can be run using `django-admin.py` utility from the\nrepository root: ::\n\n $ django-admin.py syncdb --settings=example.settings --pythonpath=\"$PWD\"\n $ django-admin.py createsuperuser --settings=example.settings --pythonpath=\"$PWD\"\n $ django-admin.py runserver --settings=example.settings --pythonpath=\"$PWD\"\n\n\nRequirements\n============\n\nDjango-urldecorators is tested with Django versions from 1.4 to 1.11 but\nit does not support `patterns function\n`_\nfrom ancient Django versions.\n\nBoth Python 2 and Python 3 are supported.\n\nTesting\n=======\n\nApplication tests can run using `tox`: ::\n\n $ tox", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/mila/django-urldecorators/tree/master", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "django-urldecorators", "package_url": "https://pypi.org/project/django-urldecorators/", "platform": "", "project_url": "https://pypi.org/project/django-urldecorators/", "project_urls": { "Homepage": "http://github.com/mila/django-urldecorators/tree/master" }, "release_url": "https://pypi.org/project/django-urldecorators/0.6/", "requires_dist": null, "requires_python": "", "summary": "Django-urldecorators is a reusable Django application which allows apply view decorators and middleware components depending on requested url.", "version": "0.6" }, "last_serial": 2957577, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "7176971e801a413ecb47fb8e22387707", "sha256": "9847a329f3b21eb94e24a737b65d4528237c101d3443857e8c24d6a427c00779" }, "downloads": -1, "filename": "django-urldecorators-0.1.zip", "has_sig": false, "md5_digest": "7176971e801a413ecb47fb8e22387707", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9199, "upload_time": "2009-08-27T12:27:03", "url": "https://files.pythonhosted.org/packages/f7/9c/25ffa2722aa79cba6e7a887d71b2b7e4e7d3daf68fb03e88a4e784fe1d2c/django-urldecorators-0.1.zip" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "e580e90dcb84e5fc31aff35338834d7a", "sha256": "25b0c222ec93e49a6da09a9d7e49ae54c1c56431814eca486c3b928a48e7ec9b" }, "downloads": -1, "filename": "django-urldecorators-0.2.zip", "has_sig": false, "md5_digest": "e580e90dcb84e5fc31aff35338834d7a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9513, "upload_time": "2010-11-05T19:26:19", "url": "https://files.pythonhosted.org/packages/23/6c/cfd99e44ddef0efde504643efcb6411f11bb7f23a3ba1bd77ca6f1aaf120/django-urldecorators-0.2.zip" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "dd6c9447731951b17ebb1d4a4de3cb68", "sha256": "031967291a6bb914efacc49bbb8fe0f74646bcf47ce786cdddf43194f7eae9c0" }, "downloads": -1, "filename": "django-urldecorators-0.3.zip", "has_sig": false, "md5_digest": "dd6c9447731951b17ebb1d4a4de3cb68", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11510, "upload_time": "2011-04-06T18:24:52", "url": "https://files.pythonhosted.org/packages/96/27/a94977573eae3e71f5872a58470de8b22dd5bcc0cd5f69c670e438dcafb1/django-urldecorators-0.3.zip" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "0aeab23437ce1f4e3fc09c9c72349275", "sha256": "b1e2948dd95de64fe8670226664aece576b575ea5dd105b441f299f065ac726a" }, "downloads": -1, "filename": "django-urldecorators-0.4.tar.gz", "has_sig": false, "md5_digest": "0aeab23437ce1f4e3fc09c9c72349275", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7534, "upload_time": "2012-08-13T14:22:40", "url": "https://files.pythonhosted.org/packages/52/f3/183fdf380b73ba8afca8d004fc9b2719cfb749d513b731644c1da2ce4383/django-urldecorators-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "5bea18ead8af306f06ee5aaff9497824", "sha256": "4f0a9663627b00c35ff86610c76276aac80f2fab3d04c919baff3065e24f50b6" }, "downloads": -1, "filename": "django-urldecorators-0.5.tar.gz", "has_sig": false, "md5_digest": "5bea18ead8af306f06ee5aaff9497824", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7589, "upload_time": "2013-12-22T19:48:09", "url": "https://files.pythonhosted.org/packages/d8/ca/db96fd4e4da81621e7511cfd9c9ea723db24d18db712c66afd78ca055ecb/django-urldecorators-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "bb886ce1bcec89c33eb73e9975b39e97", "sha256": "d157da4a6e000949b326c9840f1bea6d53368a9f031c2ad613d0d443035187d6" }, "downloads": -1, "filename": "django-urldecorators-0.6.tar.gz", "has_sig": false, "md5_digest": "bb886ce1bcec89c33eb73e9975b39e97", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8945, "upload_time": "2017-06-18T14:10:48", "url": "https://files.pythonhosted.org/packages/0c/a9/dc84942640f969ea935e84378c3a71411ebb9b83edf8b8f7215166cbd5d8/django-urldecorators-0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bb886ce1bcec89c33eb73e9975b39e97", "sha256": "d157da4a6e000949b326c9840f1bea6d53368a9f031c2ad613d0d443035187d6" }, "downloads": -1, "filename": "django-urldecorators-0.6.tar.gz", "has_sig": false, "md5_digest": "bb886ce1bcec89c33eb73e9975b39e97", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8945, "upload_time": "2017-06-18T14:10:48", "url": "https://files.pythonhosted.org/packages/0c/a9/dc84942640f969ea935e84378c3a71411ebb9b83edf8b8f7215166cbd5d8/django-urldecorators-0.6.tar.gz" } ] }