{ "info": { "author": "Alex Seitsinger", "author_email": "software@alexseitsinger.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware" ], "description": "# Django Restricted Paths\n\n## Description\n\nRestricts access to specific urls to staff only by responding with a specific view or raising a 404.\n\n## Installation\n\n```python\npip install django-restricted-paths\n```\n\n## Usage\n\nin settings.py:\n\n```python\nRESTRICTED_PATHS = {\n \"ENABLED\": not DEBUG,\n \"PATHS\": (\"/admin\",),\n \"VIEW\": \"path.to.view.class.ViewClass\",\n}\n\nMIDDLEWARE = (\n ...\n \"restricted_paths.middleware.RestrictedPathsMiddleware\"\n)\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/alexseitsinger/django-restricted-paths", "keywords": "django,urls", "license": "BSD 2-Clause License", "maintainer": "", "maintainer_email": "", "name": "django-restricted-paths", "package_url": "https://pypi.org/project/django-restricted-paths/", "platform": "", "project_url": "https://pypi.org/project/django-restricted-paths/", "project_urls": { "Documentation": "https://github.com/alexseitsinger/django-restricted-paths", "Homepage": "https://github.com/alexseitsinger/django-restricted-paths", "Source": "https://github.com/alexseitsinger/django-restricted-paths", "Tracker": "https://github.com/alexseitsinger/django-restricted-paths/issues" }, "release_url": "https://pypi.org/project/django-restricted-paths/1.4.0/", "requires_dist": [ "Django" ], "requires_python": "", "summary": "Restricts access to specific urls to staff only by responding with a specific view or raising a 404", "version": "1.4.0" }, "last_serial": 5849257, "releases": { "1.1.0": [ { "comment_text": "", "digests": { "md5": "eef266502809714712c7ab20f1dee010", "sha256": "2d7f29a8dbb058d9d0777ac361cd699001de825be60f6b9374fbb3fef5242f04" }, "downloads": -1, "filename": "django_restricted_paths-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "eef266502809714712c7ab20f1dee010", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3782, "upload_time": "2019-06-28T19:27:39", "url": "https://files.pythonhosted.org/packages/2d/75/6c019f328f551ac2f37f03c47ec4b5f1303709fdf136a2a26c51dc54b319/django_restricted_paths-1.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "70d2caf7cd1a5aea7b2a6b64265703bd", "sha256": "40dc3d7b28651484ac5380df521eaebe8b2cb3a532c2bb3df2541727ae90d6a3" }, "downloads": -1, "filename": "django-restricted-paths-1.1.0.tar.gz", "has_sig": false, "md5_digest": "70d2caf7cd1a5aea7b2a6b64265703bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3140, "upload_time": "2019-06-28T19:27:41", "url": "https://files.pythonhosted.org/packages/0e/5a/070987bb2f8d375d340583c83589b56dc266697aba7a9d75c0fbe09363ad/django-restricted-paths-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "b94d52462868832d77bc33d257c4b7af", "sha256": "202f1937ee3b8effc39fc4e7d57bd362e0f9e4fcb343f0bfb256e83c04dfb491" }, "downloads": -1, "filename": "django_restricted_paths-1.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "b94d52462868832d77bc33d257c4b7af", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3793, "upload_time": "2019-06-30T13:55:33", "url": "https://files.pythonhosted.org/packages/0f/95/2da660f02422d9dccd6d174f4d9242e9b5e0e379b9140e259e2e7d6fe5fe/django_restricted_paths-1.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3210bf6155ab33954a6b9ec8a676bf29", "sha256": "176396d76104ebe6bb4af37083d65dee6909dba0ac25452993ab8284ba963e56" }, "downloads": -1, "filename": "django-restricted-paths-1.2.0.tar.gz", "has_sig": false, "md5_digest": "3210bf6155ab33954a6b9ec8a676bf29", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3162, "upload_time": "2019-06-30T13:55:35", "url": "https://files.pythonhosted.org/packages/d2/db/ea37bbef5261c3b965d01637e1c1e1009b0d30bf8e7dfff4410f3e221597/django-restricted-paths-1.2.0.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "1cfc70a1f619c3e1087689ec5ca3e288", "sha256": "524e961b5a0615b71a0f8f3361421a7f6751b294622ea4db41d5a53152eb4b73" }, "downloads": -1, "filename": "django_restricted_paths-1.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "1cfc70a1f619c3e1087689ec5ca3e288", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3797, "upload_time": "2019-09-18T10:37:46", "url": "https://files.pythonhosted.org/packages/18/f9/fbbadccf3e709872cfbe235f72ec739b44878dadbb3d852ab6ec5b4adafb/django_restricted_paths-1.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "93f3a9f1c985499a2fb8a6bd5abdfa5c", "sha256": "5233b5e8d767ce9aa33fdbd151708c90386eeaacf26acbe35baf72042404cc99" }, "downloads": -1, "filename": "django-restricted-paths-1.3.0.tar.gz", "has_sig": false, "md5_digest": "93f3a9f1c985499a2fb8a6bd5abdfa5c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3142, "upload_time": "2019-09-18T10:37:48", "url": "https://files.pythonhosted.org/packages/da/2e/58abd4ce9994501c7e00144444072e47c60cb47bde3f52aedbc72eb67875/django-restricted-paths-1.3.0.tar.gz" } ], "1.4.0": [ { "comment_text": "", "digests": { "md5": "24b86f26af8129c285fafe0409f3f08f", "sha256": "a4686a5a5c271efea6334a34daec08c5ca9a77961544c9094c82bdbdf7c4c6d4" }, "downloads": -1, "filename": "django_restricted_paths-1.4.0-py3-none-any.whl", "has_sig": false, "md5_digest": "24b86f26af8129c285fafe0409f3f08f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3779, "upload_time": "2019-09-18T10:42:29", "url": "https://files.pythonhosted.org/packages/ab/e4/890312c90800185e3a37c66e4e8931327c78347e8e06fa4570ee81f7ca61/django_restricted_paths-1.4.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "78709e6d92e6b92f8e5618f38e477849", "sha256": "69fcbc2ee32e6819da8864918a25d61146ba7e4a51bc49a8c57ae85e4fa15adc" }, "downloads": -1, "filename": "django-restricted-paths-1.4.0.tar.gz", "has_sig": false, "md5_digest": "78709e6d92e6b92f8e5618f38e477849", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3130, "upload_time": "2019-09-18T10:42:30", "url": "https://files.pythonhosted.org/packages/44/fb/88f92c1e34b4e2c5630a12d90c77fac451172811fe1959e3f496db19554b/django-restricted-paths-1.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "24b86f26af8129c285fafe0409f3f08f", "sha256": "a4686a5a5c271efea6334a34daec08c5ca9a77961544c9094c82bdbdf7c4c6d4" }, "downloads": -1, "filename": "django_restricted_paths-1.4.0-py3-none-any.whl", "has_sig": false, "md5_digest": "24b86f26af8129c285fafe0409f3f08f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3779, "upload_time": "2019-09-18T10:42:29", "url": "https://files.pythonhosted.org/packages/ab/e4/890312c90800185e3a37c66e4e8931327c78347e8e06fa4570ee81f7ca61/django_restricted_paths-1.4.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "78709e6d92e6b92f8e5618f38e477849", "sha256": "69fcbc2ee32e6819da8864918a25d61146ba7e4a51bc49a8c57ae85e4fa15adc" }, "downloads": -1, "filename": "django-restricted-paths-1.4.0.tar.gz", "has_sig": false, "md5_digest": "78709e6d92e6b92f8e5618f38e477849", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3130, "upload_time": "2019-09-18T10:42:30", "url": "https://files.pythonhosted.org/packages/44/fb/88f92c1e34b4e2c5630a12d90c77fac451172811fe1959e3f496db19554b/django-restricted-paths-1.4.0.tar.gz" } ] }