{ "info": { "author": "Charlie DeTar", "author_email": "cfd@fohn.org", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "django-fence\n============\n\nThis is a simple Django app with middleware to block access (in a\nuser-friendly, but not particularly secure way) to early beta or testing sites.\n\nThe middleware checks for the presence of a session token. If it matches the\ntoken specified in settings, the request procedes normally; if it doesn't,\nthe middleware displays a \"please enter the token\" form instead. A single\ntoken is shared for all authorized viewers.\n\nThe point is not to provide high security, but to instead prevent casual\nvisitors and crawlers from poking around a beta or testing site, while at the\nsame time making it *super easy* to give access to designers and people of\nvarying computer literacy. You just have to tell them: \"Oh, the magic word is\n'fiddlesticks'\", and they can instantly get access without having to do any\nsort of registration. The goal is to be nicer user experience than HTTP basic\nauth for this purpose.\n\nInstallation\n~~~~~~~~~~~~\n\nGet it into your path. This ought to work::\n\n pip install -e http://github.com/yourcelf/django-fence.git\n\nUsage\n~~~~~\n\n1. Add ``fence`` to ``INSTALLED_APPS``::\n\n INSTALLED_APPS += ('fence',)\n\n2. Add middleware::\n\n MIDDLEWARE_CLASSES += (\"fence.middleware.Fence\",)\n\n3. Define the magic word::\n\n FENCE_TOKEN = \"secret\"\n \n4. Create a template to display in ``fence/say_the_magic_word.html``. An example template::\n\n {% extends \"base.html\" %}\n\n {# Add a class to
which lets us hide footers/headers/etc. #}\n {% block body_class %}front-gate{% endblock %}\n\n {% block content %}\n\n \n\n {% endblock %}\n\nLicense\n~~~~~~~\n\nMIT License.\n\nCopyright (C) 2012 Charlie DeTar\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nAuthors\n~~~~~~~\n\nBy Charlie DeTar.", "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/yourcelf/django-fence", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "django-fence", "package_url": "https://pypi.org/project/django-fence/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-fence/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/yourcelf/django-fence" }, "release_url": "https://pypi.org/project/django-fence/0.0.3/", "requires_dist": null, "requires_python": null, "summary": "Simple middleware to restrict access to \"private beta\" sites", "version": "0.0.3" }, "last_serial": 1340585, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "59d857f40b3f9a4e0465d99450559527", "sha256": "256c08d53513d9a27298942444a72898f571f5bae3e9d647799087f7150b6354" }, "downloads": -1, "filename": "django-fence-0.0.2.tar.gz", "has_sig": false, "md5_digest": "59d857f40b3f9a4e0465d99450559527", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3718, "upload_time": "2014-12-11T20:52:40", "url": "https://files.pythonhosted.org/packages/cd/45/33e382967cf402fa2c508e5f9d13e939921095c12eb05de28f484cc87f53/django-fence-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "2879c0c1ad3d0e14fd41c57f3988212b", "sha256": "0d49ee708e0c7da21945cc727e58310a04a4a231352943178ee7a9214c045221" }, "downloads": -1, "filename": "django-fence-0.0.3.tar.gz", "has_sig": false, "md5_digest": "2879c0c1ad3d0e14fd41c57f3988212b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3718, "upload_time": "2014-12-11T20:55:48", "url": "https://files.pythonhosted.org/packages/02/d3/600c877036e78425ef1396af17bb2aa05b5c7d0fa5da6087cc3b17db878a/django-fence-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2879c0c1ad3d0e14fd41c57f3988212b", "sha256": "0d49ee708e0c7da21945cc727e58310a04a4a231352943178ee7a9214c045221" }, "downloads": -1, "filename": "django-fence-0.0.3.tar.gz", "has_sig": false, "md5_digest": "2879c0c1ad3d0e14fd41c57f3988212b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3718, "upload_time": "2014-12-11T20:55:48", "url": "https://files.pythonhosted.org/packages/02/d3/600c877036e78425ef1396af17bb2aa05b5c7d0fa5da6087cc3b17db878a/django-fence-0.0.3.tar.gz" } ] }