{ "info": { "author": "Manyakhin Konstantin", "author_email": "2447785@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", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "django-dev-protector\n====================\nhttps://github.com/ElusiveSpirit/django-dev-protector\n\nThe app for freelance developers, that blocks site if needed.\n\nIt can be used in situations when a client don't want to pay your work. The app blocks all requests to the site and shows a message of this situation.\n\nInstallation\n\npip install django-dev-protector\n \nsettings.py\n```\nINSTALLED_APPS = [\n ...\n\n # import django_dev_protector\n 'django_dev_protector',\n]\n\n\nMIDDLEWARE = [\n # set middleware class\n 'django_dev_protector.middleware.ControlMiddleware',\n\n ...\n]\n```\n\nSettings\n--------\n```\n# render a simple template\nPROTECT_TEMPLATE_NAME = 'django_dev_protector/index.html'\n\n# if redirect url is set, then default template would be\n# redirects person after 10 sec\nPROTECT_REDIRECT_URL = 'http://your_client_opponent_site.com/'\n```\nBy default server is unblocked\n\nUsage\n-----\nYou need to save your django SECRET_KEY from settings first\n```\nSECRET_KEY = '...\n```\nAfter you are able to block or unblock site with POST requests\n```\n{\n \"key\": ,\n \"status\": true\n}\nPOST to http:///django_dev_protector/\n```\nAn example\n```\ncurl \\\n -H \"Content-Type: application/json\" \\\n -X POST -d '{\"key\": \"\", \"status\": true}' \\\n http:///django_dev_protector/\n```\n\nLocalize\n--------\nThe app template support Russian. You only need to switch Russian in settings.\n```\nLANGUAGE_CODE = 'ru-ru'\n\nUSE_I18N = True\n```", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ElusiveSpirit/django-dev-protector", "keywords": "", "license": "BSD License", "maintainer": "", "maintainer_email": "", "name": "django-dev-protector", "package_url": "https://pypi.org/project/django-dev-protector/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-dev-protector/", "project_urls": { "Homepage": "https://github.com/ElusiveSpirit/django-dev-protector" }, "release_url": "https://pypi.org/project/django-dev-protector/0.3/", "requires_dist": null, "requires_python": "", "summary": "Django app that protects freelance developers.", "version": "0.3" }, "last_serial": 2461260, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "400abaff03b5c3eaf77f1e487dbac25e", "sha256": "4005896ef9dcd989faf90f17a40b7a2ae5f8f594a25be4121c47ec0df200e48c" }, "downloads": -1, "filename": "django-dev-protector-0.2.tar.gz", "has_sig": false, "md5_digest": "400abaff03b5c3eaf77f1e487dbac25e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4341, "upload_time": "2016-11-14T14:56:18", "url": "https://files.pythonhosted.org/packages/08/19/48da8e50b075e66c28c0df7c959ebb4e177f3a4488e59d009241ee6ffaa5/django-dev-protector-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "279e5cc43b073f61911477d81bfa47e2", "sha256": "95c65bd20a5dd7c186b6f0fe537843ba3b9c7fc718ed12a129a6658c67d7e97d" }, "downloads": -1, "filename": "django-dev-protector-0.3.tar.gz", "has_sig": false, "md5_digest": "279e5cc43b073f61911477d81bfa47e2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4463, "upload_time": "2016-11-15T06:38:16", "url": "https://files.pythonhosted.org/packages/99/15/103d2e791cb5798f3babcf8caf04ce0b89039a5ed97d726005abcc8b61cf/django-dev-protector-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "279e5cc43b073f61911477d81bfa47e2", "sha256": "95c65bd20a5dd7c186b6f0fe537843ba3b9c7fc718ed12a129a6658c67d7e97d" }, "downloads": -1, "filename": "django-dev-protector-0.3.tar.gz", "has_sig": false, "md5_digest": "279e5cc43b073f61911477d81bfa47e2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4463, "upload_time": "2016-11-15T06:38:16", "url": "https://files.pythonhosted.org/packages/99/15/103d2e791cb5798f3babcf8caf04ce0b89039a5ed97d726005abcc8b61cf/django-dev-protector-0.3.tar.gz" } ] }