{ "info": { "author": "Jannis Leidel", "author_email": "jannis@leidel.info", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.11", "Framework :: Django :: 2.0", "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", "Programming Language :: Python :: 3.6" ], "description": "django-hosts\n============\n\n.. image:: https://img.shields.io/pypi/v/django-hosts.svg\n :target: https://pypi.python.org/pypi/django-hosts\n\n.. image:: https://img.shields.io/travis/jazzband/django-hosts.svg\n :target: https://travis-ci.org/jazzband/django-hosts\n\n.. image:: https://img.shields.io/coveralls/jazzband/django-hosts.svg\n :target: https://coveralls.io/r/jazzband/django-hosts\n\n.. image:: https://readthedocs.org/projects/django-hosts/badge/?version=latest&style=flat\n :target: https://django-hosts.readthedocs.io/en/latest/\n\n.. image:: https://jazzband.co/static/img/badge.svg\n :target: https://jazzband.co/\n\nThis Django app routes requests for specific hosts to different URL schemes\ndefined in modules called \"hostconfs\".\n\nFor example, if you own ``example.com`` but want to serve specific content\nat ``api.example.com`` and ``beta.example.com``, add the following to a\n``hosts.py`` file::\n\n from django_hosts import patterns, host\n\n host_patterns = patterns('path.to',\n host(r'api', 'api.urls', name='api'),\n host(r'beta', 'beta.urls', name='beta'),\n )\n\nThis causes requests to ``{api,beta}.example.com`` to be routed to their\ncorresponding URLconf. You can use your ``urls.py`` as a template for these\nhostconfs.\n\nPatterns are evaluated in order. If no pattern matches, the request is\nprocessed in the usual way, ie. using the standard ``ROOT_URLCONF``.\n\nThe patterns on the left-hand side are regular expressions. For example,\nthe following ``ROOT_HOSTCONF`` setting will route ``foo.example.com``\nand ``bar.example.com`` to the same URLconf.\n\n::\n\n from django_hosts import patterns, host\n\n host_patterns = patterns('',\n host(r'(foo|bar)', 'path.to.urls', name='foo-or-bar'),\n )\n\n.. note:\n\n Remember:\n\n * Patterns are matched against the extreme left of the requested host\n\n * It is implied that all patterns end either with a literal full stop\n (ie. \".\") or an end of line metacharacter.\n\n * As with all regular expressions, various metacharacters need quoting.\n\nInstallation\n------------\n\nFirst, install the app with your favorite package manager, e.g.::\n\n pip install django-hosts\n\nAlternatively, use the `repository on Github`_.\n\nYou can find the full docs here: `django-hosts.rtfd.org`_\n\nThen configure your Django site to use the app:\n\n#. Add ``'django_hosts'`` to your ``INSTALLED_APPS`` setting.\n\n#. Add ``'django_hosts.middleware.HostsRequestMiddleware'`` to the **beginning** of your\n ``MIDDLEWARE`` or ``MIDDLEWARE_CLASSES`` setting.\n\n#. Add ``'django_hosts.middleware.HostsResponseMiddleware'`` to the **end** of your\n ``MIDDLEWARE`` or ``MIDDLEWARE_CLASSES`` setting.\n\n#. Create a new module containing your default host patterns,\n e.g. in the ``hosts.py`` file next to your ``urls.py``.\n\n#. Set the ``ROOT_HOSTCONF`` setting to the dotted Python\n import path of the module containing your host patterns, e.g.::\n\n ROOT_HOSTCONF = 'mysite.hosts'\n\n#. Set the ``DEFAULT_HOST`` setting to the **name** of the host pattern you\n want to refer to as the default pattern. It'll be used if no other\n pattern matches or you don't give a name to the ``host_url`` template\n tag.\n\n.. _`repository on Github`: https://github.com/jazzband/django-hosts\n.. _`django-hosts.rtfd.org`: https://django-hosts.readthedocs.io/\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://django-hosts.readthedocs.io/", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "django-hosts", "package_url": "https://pypi.org/project/django-hosts/", "platform": "", "project_url": "https://pypi.org/project/django-hosts/", "project_urls": { "Homepage": "https://django-hosts.readthedocs.io/" }, "release_url": "https://pypi.org/project/django-hosts/3.0/", "requires_dist": null, "requires_python": "", "summary": "Dynamic and static host resolving for Django. Maps hostnames to URLconfs.", "version": "3.0" }, "last_serial": 3349963, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "6f78b806eb977c9c6e921516e4b57ca3", "sha256": "009d079fb2bc2a75280f37a1d418ab598af73e9f024b0f72be2e53262e6a11ef" }, "downloads": -1, "filename": "django-hosts-0.1.tar.gz", "has_sig": true, "md5_digest": "6f78b806eb977c9c6e921516e4b57ca3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9123, "upload_time": "2011-05-29T17:45:18", "url": "https://files.pythonhosted.org/packages/b7/17/20bba27c6f1ea84d895288327453471e840e1784e5e87fbce7a98ed66908/django-hosts-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "e34bf3aca367e34b3bdfdc84ec9b9740", "sha256": "98e0fd9f394933e1c3347670a3b3f0aee4d11b730d85b0dc9b965b958a0ecc5f" }, "downloads": -1, "filename": "django-hosts-0.1.1.tar.gz", "has_sig": true, "md5_digest": "e34bf3aca367e34b3bdfdc84ec9b9740", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15837, "upload_time": "2011-05-30T12:05:53", "url": "https://files.pythonhosted.org/packages/7b/d0/d08a6a2df58eff8e80981c9d3592cb21862662e0816c3636e5bdd654825a/django-hosts-0.1.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "4dcc57449d9958a189e9e9320d54a974", "sha256": "1f984692ec6d40ed6357ed209fda0b18167dcc6e0568a78cc16342f41a19e164" }, "downloads": -1, "filename": "django-hosts-0.2.tar.gz", "has_sig": true, "md5_digest": "4dcc57449d9958a189e9e9320d54a974", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13322, "upload_time": "2011-05-31T12:53:31", "url": "https://files.pythonhosted.org/packages/cc/a7/0f3f7143e6e852604ce40d98a18f02e9ee51b703ba829d74d8e4f2898058/django-hosts-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "6491e31f99042f03e254eb7bdcfb958f", "sha256": "ed997c5cdf313dff46240da50a4149f4d9a051e06aba340f79ace618a4892a2b" }, "downloads": -1, "filename": "django-hosts-0.2.1.tar.gz", "has_sig": true, "md5_digest": "6491e31f99042f03e254eb7bdcfb958f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13506, "upload_time": "2011-05-31T14:56:27", "url": "https://files.pythonhosted.org/packages/5e/18/27091b0ccb2f8eee530ad73947feedf23930539938759619503574ace381/django-hosts-0.2.1.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "f3641d2ac08ab4a831f528197faa9fb4", "sha256": "a2cd583deba81432f56301395ff999465fab33d5e82c8467397f0ceceedf76c5" }, "downloads": -1, "filename": "django-hosts-0.3.tar.gz", "has_sig": true, "md5_digest": "f3641d2ac08ab4a831f528197faa9fb4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22275, "upload_time": "2011-09-30T13:07:41", "url": "https://files.pythonhosted.org/packages/a1/59/321180415afbffc4722e1d85a547cda83d2fe71ad13717b8ba9694f4ca2e/django-hosts-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "80bfad6d7da1124b573ece6319ec0993", "sha256": "dc0a42fe461e92978ae4f2d5ec08b7907ce1ccc0d301487b3b6fc1ba3c2fbf46" }, "downloads": -1, "filename": "django-hosts-0.4.tar.gz", "has_sig": true, "md5_digest": "80bfad6d7da1124b573ece6319ec0993", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22711, "upload_time": "2011-11-04T14:54:42", "url": "https://files.pythonhosted.org/packages/ac/20/3f6cfb8714f74d79aba63622d9fbed0fd6f5de9c66835c2c861e84b82955/django-hosts-0.4.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "40a1301e6f1b2faaf9ee2f46e4f527a1", "sha256": "59043ddb5c6c2a927ee3e85d4daf9b2f39e1e1d78c7e2668dcb5aa8d7e351a38" }, "downloads": -1, "filename": "django-hosts-0.4.1.tar.gz", "has_sig": true, "md5_digest": "40a1301e6f1b2faaf9ee2f46e4f527a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25313, "upload_time": "2011-12-23T03:09:36", "url": "https://files.pythonhosted.org/packages/8c/c4/55ffc4b7064aed3a3d159f164f9282d22b2d3159829dcfdefb36b80227eb/django-hosts-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "634999db72baaecf9dfd05a3b234c6cc", "sha256": "e0fdd31ea5cc57fb8293ea4562d078d426751448ec8eb236c28a26ac20218f41" }, "downloads": -1, "filename": "django-hosts-0.4.2.tar.gz", "has_sig": true, "md5_digest": "634999db72baaecf9dfd05a3b234c6cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24395, "upload_time": "2012-02-14T12:58:50", "url": "https://files.pythonhosted.org/packages/02/33/e211f865472f108eef3c0c8a6d4a4417b4c4f8bad8018cd8d64d4cd4812b/django-hosts-0.4.2.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "9463cb86edaba97992ea0f508d8aa269", "sha256": "ce8ce8a1c8563d1f12ef6e8d1511802c18137062222991664b98d97cac21adf8" }, "downloads": -1, "filename": "django-hosts-0.5.tar.gz", "has_sig": true, "md5_digest": "9463cb86edaba97992ea0f508d8aa269", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26101, "upload_time": "2012-08-29T08:30:26", "url": "https://files.pythonhosted.org/packages/26/dc/e48d44a341e891a0954094e2188e265af5d2582be3a5079748a30c3917e5/django-hosts-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "08c4c52681ae3363931d7a94b94ec124", "sha256": "48d7396d3fae5f77104b2605f077968618274e01871a708770224548e436829a" }, "downloads": -1, "filename": "django-hosts-0.6.tar.gz", "has_sig": true, "md5_digest": "08c4c52681ae3363931d7a94b94ec124", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26348, "upload_time": "2013-06-17T10:08:40", "url": "https://files.pythonhosted.org/packages/11/e6/a0ed1219ae3165067a748ee342a54dd73616d425ec8e93233f037fa32e29/django-hosts-0.6.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "fa6c32332a0f581610cfb4b550b3c573", "sha256": "a6e291ebb0a263390be408fd39c874d3999cf6df0a962784e2ddbd3b6fd1979e" }, "downloads": -1, "filename": "django_hosts-1.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "fa6c32332a0f581610cfb4b550b3c573", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 30274, "upload_time": "2014-12-29T20:32:05", "url": "https://files.pythonhosted.org/packages/bb/a0/f4d626139e503dba5b230ad2da75cfa2594f0f20873841c8c99cd727f2c1/django_hosts-1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c7abc7759f610c5eda7bdc8a3fed17cf", "sha256": "b96f1f3c86150dc0f901db872a8ffd2b7fc1381543fb99876cc9154552ea0b6d" }, "downloads": -1, "filename": "django-hosts-1.0.tar.gz", "has_sig": true, "md5_digest": "c7abc7759f610c5eda7bdc8a3fed17cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 31227, "upload_time": "2014-12-29T20:32:01", "url": "https://files.pythonhosted.org/packages/5c/da/57ffab3d3d0402345a135dd9366ee1ed3d40a1c22010e93ccd6d4bbe611d/django-hosts-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "1f355448b9dcc12da48b87db0e4f90d3", "sha256": "d911c593a54c48a35f71a29e110b5eea733464df3f26d81da87beb852f1915cf" }, "downloads": -1, "filename": "django_hosts-1.1-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "1f355448b9dcc12da48b87db0e4f90d3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 30442, "upload_time": "2015-01-05T16:44:07", "url": "https://files.pythonhosted.org/packages/08/14/dadde67dd27276f379e50a2a652898eaab221c296f0410e9e5232fa87faa/django_hosts-1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d805e86e826f7ad00cd7bf6a14b8fbab", "sha256": "71c6d1425e68c9dace0aef7cae9d67570690de75118d2c69d1ff8b384d8edafd" }, "downloads": -1, "filename": "django-hosts-1.1.tar.gz", "has_sig": true, "md5_digest": "d805e86e826f7ad00cd7bf6a14b8fbab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 31467, "upload_time": "2015-01-05T16:44:04", "url": "https://files.pythonhosted.org/packages/d2/f4/d7432bb2c131604a618753a61262de7b43a87d03cbb47d959a834f8e5a78/django-hosts-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "50170cc20c6b5b2f655ddddb69bf5417", "sha256": "45f1fcb1b07a93a30cbe211c81e79d25138c13e6dd829d97aec9d9a2eb8b93b8" }, "downloads": -1, "filename": "django_hosts-1.2-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "50170cc20c6b5b2f655ddddb69bf5417", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 28090, "upload_time": "2015-05-06T16:53:40", "url": "https://files.pythonhosted.org/packages/ad/cf/8cac23f582d02404fe59ecf5d63d1d7c5b8f71312f5dda607432fce0f78b/django_hosts-1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fe386a7e2855114a59d56f88bb38704a", "sha256": "dc07a126f135640cb01281788658abedab570e2a7b0620a0ed33f2cdf8a88dad" }, "downloads": -1, "filename": "django-hosts-1.2.tar.gz", "has_sig": true, "md5_digest": "fe386a7e2855114a59d56f88bb38704a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 31487, "upload_time": "2015-05-06T16:53:36", "url": "https://files.pythonhosted.org/packages/10/cc/2b97a4850f7a15e0bb18e8672c4651062710710fea0e87bc7e958906979e/django-hosts-1.2.tar.gz" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "35759aac583749c18c9d68c3d32fa486", "sha256": "00b092a3585cd08b6c0c4fe4290113f35b4328ce1ef550afe9579ebd0977b51c" }, "downloads": -1, "filename": "django_hosts-1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "35759aac583749c18c9d68c3d32fa486", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 28251, "upload_time": "2015-12-15T13:08:00", "url": "https://files.pythonhosted.org/packages/08/ae/03cea526da9763f5e92d3895b6ce6b992fd9841b03c11fd4f2276a1e2f45/django_hosts-1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "07acddc967581b05ee38308abd24d638", "sha256": "62c11415b8f1f457071e2d449e6d485d66e10ccf90bb1c3b6cd5e6e3488d0533" }, "downloads": -1, "filename": "django-hosts-1.3.tar.gz", "has_sig": false, "md5_digest": "07acddc967581b05ee38308abd24d638", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 32412, "upload_time": "2015-12-15T13:08:17", "url": "https://files.pythonhosted.org/packages/88/52/c2cb6af1dc272d779b1d8ea63b79ff34adb5593446d6328747c8b8926e52/django-hosts-1.3.tar.gz" } ], "1.4": [ { "comment_text": "", "digests": { "md5": "ee1d6951f77a5a366f97b2c074ec1a0d", "sha256": "4f143330b74c3e0188d4ece26901073f7bb8eb2fbb82f969df15bd0fd6ae28a2" }, "downloads": -1, "filename": "django_hosts-1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ee1d6951f77a5a366f97b2c074ec1a0d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 28138, "upload_time": "2016-01-21T09:31:55", "url": "https://files.pythonhosted.org/packages/f4/01/190ada53dd122866d953b4399c18b705d0d0ec5cfed47e80f2e96e3e79c8/django_hosts-1.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c264c28f460cc76038ccac1b31560df2", "sha256": "bbc01188af6f3addf6a806ed4a0a50366437db748774e2573f8981a23ffc6ed8" }, "downloads": -1, "filename": "django-hosts-1.4.tar.gz", "has_sig": false, "md5_digest": "c264c28f460cc76038ccac1b31560df2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 32315, "upload_time": "2016-01-21T09:32:00", "url": "https://files.pythonhosted.org/packages/25/06/fe1adea2cb2ae890bb3bad1cd30fcf7a8df713f8d5ce1d19b3c82c6f2acf/django-hosts-1.4.tar.gz" } ], "2.0": [ { "comment_text": "", "digests": { "md5": "68fd05dd6508ec2985961c6eec36cc41", "sha256": "5315327b2bf04276b2f430365551365204a7e5c1dc5aa3d5c30322aee1c2e3da" }, "downloads": -1, "filename": "django_hosts-2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "68fd05dd6508ec2985961c6eec36cc41", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 28029, "upload_time": "2016-07-25T11:44:47", "url": "https://files.pythonhosted.org/packages/4d/0a/9fbfa33b4e5cb9991b038dae75d351d704e19fea6a7ea00cd874515ba284/django_hosts-2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e8f00bf2fd48fe7b03a68317f4c0bc00", "sha256": "783cd90676341588c25bd014a26171571650ad75514145ff37dec589e5390b42" }, "downloads": -1, "filename": "django-hosts-2.0.tar.gz", "has_sig": false, "md5_digest": "e8f00bf2fd48fe7b03a68317f4c0bc00", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 32696, "upload_time": "2016-07-25T11:44:49", "url": "https://files.pythonhosted.org/packages/9e/76/6c52e782066c44e107e5081ea6171453f1d058d61b275eeba4ce205d11e8/django-hosts-2.0.tar.gz" } ], "3.0": [ { "comment_text": "", "digests": { "md5": "f0ffecf73487851687afeccb5eb171db", "sha256": "8e83232dbd7ff0d9de5c814f16bdf4cd1971bd00c54fa1f3e507aed4f93215a8" }, "downloads": -1, "filename": "django_hosts-3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f0ffecf73487851687afeccb5eb171db", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 27570, "upload_time": "2017-11-20T15:42:54", "url": "https://files.pythonhosted.org/packages/3a/26/78b9136c5a57c1704f5083759018797e605523a114c8e87b8063e50b9101/django_hosts-3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7a8488c5111217101ce6f7b7828d6f7d", "sha256": "3599645f37b4c51df6140d659bef356e05ae7ff7748f8fef14c2c84083dd8089" }, "downloads": -1, "filename": "django-hosts-3.0.tar.gz", "has_sig": false, "md5_digest": "7a8488c5111217101ce6f7b7828d6f7d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 32361, "upload_time": "2017-11-20T18:49:19", "url": "https://files.pythonhosted.org/packages/ad/90/32799fa779941da1fa3636034bb35a4c4f3feada67be56ea1a6f32f76f7e/django-hosts-3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f0ffecf73487851687afeccb5eb171db", "sha256": "8e83232dbd7ff0d9de5c814f16bdf4cd1971bd00c54fa1f3e507aed4f93215a8" }, "downloads": -1, "filename": "django_hosts-3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f0ffecf73487851687afeccb5eb171db", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 27570, "upload_time": "2017-11-20T15:42:54", "url": "https://files.pythonhosted.org/packages/3a/26/78b9136c5a57c1704f5083759018797e605523a114c8e87b8063e50b9101/django_hosts-3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7a8488c5111217101ce6f7b7828d6f7d", "sha256": "3599645f37b4c51df6140d659bef356e05ae7ff7748f8fef14c2c84083dd8089" }, "downloads": -1, "filename": "django-hosts-3.0.tar.gz", "has_sig": false, "md5_digest": "7a8488c5111217101ce6f7b7828d6f7d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 32361, "upload_time": "2017-11-20T18:49:19", "url": "https://files.pythonhosted.org/packages/ad/90/32799fa779941da1fa3636034bb35a4c4f3feada67be56ea1a6f32f76f7e/django-hosts-3.0.tar.gz" } ] }