{ "info": { "author": "Isaac Slavitt", "author_email": "isaac@drivendata.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT 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.5", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "django-hide-herokuapp\n=====================\n\nDjango app for Heroku users designed to hide your ``*.herokuapp.com``\nfrom search engine results.\n\nUse case\n--------\n\nYou want to develop a website called ``artisanalraisinbeer.com`` using\nDjango deployed on Heroku. You write a little bit of Django code and\ncreate a new Heroku app called ``artisanalraisinbeer`` to deploy to.\n\nWhile developing, you can visit your site by going to this URL:\n``http://artisanalraisinbeer.herokuapp.com``\n\nEventually, you finish the first version of your website, buy the\ndomain name `artisanalraisinbeer.com`, and set everything up\nso that you can view the site just by going to the following URL:\n``http://www.artisanalraisinbeer.com``\n\nYou can still visit ``http://artisanalraisinbeer.herokuapp.com``, which\nis fine\u2014but there's one problem: you want your main site to show\nup in search results, *not* your ``.herokuapp.com`` site.\n\nHow it works\n------------\n\nThis app goes about this two ways: `robots.txt `_\nand the `X-Robots-Tag `_.\nWhy both? *To be double-plus sure...* :eyes:\n\nIf ``herokuapp`` seems to be in the `originating host`_\nof the user request, then we do two things:\n\n* Put the following in ``robots.txt``::\n\n User-agent: *\n Disallow: /\n \n* Set ``X-Robots-Tag`` in our response header to ``noindex, nofollow``.\n\nFor search engines that respect these settings, they should start to ignore these sites\nin future crawls.\n\nQuick start\n-----------\n\n1. Add ``'hide_herokuapp'`` to your ``INSTALLED_APPS`` setting.\n\n2. Add the ``HideHerokuappFromRobotsMiddleware`` middleware to your ``MIDDLEWARE_CLASSES``\n like this::\n \n MIDDLEWARE_CLASSES = (\n ...\n 'hide_herokuapp.middleware.HideHerokuappFromRobotsMiddleware',\n )\n \n\n3. Include the ``hide_herokuapp`` URLs in your project's ``urls.py`` like this::\n \n\n urlpatterns = [\n ...\n url(r'^', include('hide_herokuapp.urls')),\n ...\n ]\n \n alternatively, you may hook up the view directly::\n\n from hide_herokuapp.views import herokuapp_robots_view\n\n urlpatterns = [\n ...\n url(r'^robots\\.txt$', herokuapp_robots_view),\n ...\n ] \n\nContribute\n----------\n\nPyPI (Downloads)\n https://pypi.python.org/pypi/django-hide-herokuapp\nOfficial repository\n https://github.com/isms/django-hide-herokuapp\nIssue tracker\n https://github.com/isms/django-hide-herokuapp/issues\n\n.. _originating host: https://docs.djangoproject.com/en/1.9/ref/request-response/#django.http.HttpRequest.get_host", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/isms/django-hide-herokuapp/", "keywords": "django,heroku,herokuapp", "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "django-hide-herokuapp", "package_url": "https://pypi.org/project/django-hide-herokuapp/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-hide-herokuapp/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/isms/django-hide-herokuapp/" }, "release_url": "https://pypi.org/project/django-hide-herokuapp/0.4/", "requires_dist": null, "requires_python": null, "summary": "Direct search engines not to index *.herokuapp.com URLs.", "version": "0.4" }, "last_serial": 2050118, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "75307859a4b9718dbb61183abe3906c4", "sha256": "f8d776a3930073cafc139a542625f2750685c735bf733e280609506869b0810e" }, "downloads": -1, "filename": "django_hide_herokuapp-0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "75307859a4b9718dbb61183abe3906c4", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6368, "upload_time": "2015-03-10T18:24:22", "url": "https://files.pythonhosted.org/packages/fc/9b/8d042a1d8570e2178e417cfabb6e63312f13c86835a38dd76c7fd00f1e08/django_hide_herokuapp-0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9680e33722caecd120df0b6a38379980", "sha256": "32a660e145510fb7636fd24c731c11482af4e879f735a3fac7fa6a5fc318c73b" }, "downloads": -1, "filename": "django-hide-herokuapp-0.1.tar.gz", "has_sig": false, "md5_digest": "9680e33722caecd120df0b6a38379980", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4072, "upload_time": "2015-03-10T18:23:57", "url": "https://files.pythonhosted.org/packages/5c/0a/b1c2a03f6352c2837788b21231b777d8346ee6c7574793e41da659ec8457/django-hide-herokuapp-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "4ddc910867588ac0c284e7040fcb7803", "sha256": "24ebaae53b298e4fd88f71dc4d56fe92b854d43ab9fa2851159e867cb35140bb" }, "downloads": -1, "filename": "django_hide_herokuapp-0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "4ddc910867588ac0c284e7040fcb7803", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6637, "upload_time": "2016-02-21T19:57:36", "url": "https://files.pythonhosted.org/packages/cd/d4/cc8a269883f161df54b382c3198c4adac062360de6899a045990aaf27058/django_hide_herokuapp-0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9fb20f0bb4a20b2e0971a7e4686146bb", "sha256": "c1c80820d9f6a2e32f121bc5a5de8581c88e978ac49eae8b230b266238a5d9ee" }, "downloads": -1, "filename": "django-hide-herokuapp-0.2.tar.gz", "has_sig": false, "md5_digest": "9fb20f0bb4a20b2e0971a7e4686146bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4376, "upload_time": "2016-02-21T19:57:25", "url": "https://files.pythonhosted.org/packages/d6/c2/d97d8b414b07fb2131006211afdf1a886b59cea4822e4189b712dcb6478d/django-hide-herokuapp-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "f6ed06a521385bb731b033eba5f52340", "sha256": "f597adb0c99a0e4f06064a7e1dca643d494cae371ee6a1689470fea2463b1cae" }, "downloads": -1, "filename": "django-hide-herokuapp-0.3.tar.gz", "has_sig": false, "md5_digest": "f6ed06a521385bb731b033eba5f52340", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4373, "upload_time": "2016-02-21T22:46:12", "url": "https://files.pythonhosted.org/packages/3f/ae/c55fe53db70d64563468773b18682229dfa48b9571b098954d101bdea144/django-hide-herokuapp-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "b59cafaa54d6b42ef0a282896cb7880a", "sha256": "c198ba99a18336f775a09cad36ec8ea4ec7d924827d25af28777f342dcdbb51a" }, "downloads": -1, "filename": "django-hide-herokuapp-0.4.tar.gz", "has_sig": false, "md5_digest": "b59cafaa54d6b42ef0a282896cb7880a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4846, "upload_time": "2016-04-06T22:00:22", "url": "https://files.pythonhosted.org/packages/92/4a/43f5c2bcb557b2340b5298d05d1ad3ccf7eeb2d6e18a20136c7927b8da47/django-hide-herokuapp-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b59cafaa54d6b42ef0a282896cb7880a", "sha256": "c198ba99a18336f775a09cad36ec8ea4ec7d924827d25af28777f342dcdbb51a" }, "downloads": -1, "filename": "django-hide-herokuapp-0.4.tar.gz", "has_sig": false, "md5_digest": "b59cafaa54d6b42ef0a282896cb7880a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4846, "upload_time": "2016-04-06T22:00:22", "url": "https://files.pythonhosted.org/packages/92/4a/43f5c2bcb557b2340b5298d05d1ad3ccf7eeb2d6e18a20136c7927b8da47/django-hide-herokuapp-0.4.tar.gz" } ] }