{ "info": { "author": "Piribo", "author_email": "pierre.ricciobourgeois@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", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "=====\r\n Django Lightweight Subdomains Handler\r\n =====\r\n \r\n This is a very short Django Middleware to handle each subdomains\r\n with a specific URLconf file.\r\n \r\n Example\r\n -------\r\n \r\n If you want to have something like::\r\n \r\n \tapi.example.org\r\n \t\r\n with a specific URLconf file for each of your subdomains\r\n \r\n This what you're looking for!\r\n \r\n Quick start\r\n -----------\r\n \r\n 1. Add this on top of your MIDDLEWARE_CLASSES setting like this::\r\n \r\n MIDDLEWARE_CLASSES = (\r\n 'lightsub.middleware.SubDomainMiddleware',\r\n \t\t...\r\n )\r\n \r\n 2. Add the SUBDOMAINS_URLCONF dict to your setting project file::\r\n \r\n \tSUBDOMAINS_URLCONF = {\r\n \t\t'api': 'api.urls',\r\n \t}\r\n \r\n Where 'api.urls' is your Django-app 'api' and urls is your urls.py module\r\n \r\n 3. Run your Django project and try to reach api.example.org", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.piribo.net", "keywords": "", "license": "BSD License", "maintainer": "", "maintainer_email": "", "name": "django-subdomains-handler", "package_url": "https://pypi.org/project/django-subdomains-handler/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-subdomains-handler/", "project_urls": { "Homepage": "http://www.piribo.net" }, "release_url": "https://pypi.org/project/django-subdomains-handler/0.2/", "requires_dist": null, "requires_python": null, "summary": "Lightweight django subdomains handler", "version": "0.2" }, "last_serial": 897185, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "79b9d85e1b25b2d0dcc801c22f762f2c", "sha256": "d4f8a40ed1bbf828d800833d8b9d7caf439a7568e377d4d458781a34043ffc82" }, "downloads": -1, "filename": "django-subdomains-handler-0.1.tar.gz", "has_sig": false, "md5_digest": "79b9d85e1b25b2d0dcc801c22f762f2c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2779, "upload_time": "2013-10-17T18:31:30", "url": "https://files.pythonhosted.org/packages/a8/0b/1a9d3cc69fae5e8e6d805b82269414a9d107475f2502467ef67c07e870bd/django-subdomains-handler-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "d5c399e0ce3661ae9a684c34970e2008", "sha256": "740de9a912bf123c8abdbcba2a6a013e1cc85ab89de3a455e7b1d73e4e13f47c" }, "downloads": -1, "filename": "django-subdomains-handler-0.2.tar.gz", "has_sig": false, "md5_digest": "d5c399e0ce3661ae9a684c34970e2008", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2783, "upload_time": "2013-10-17T21:25:08", "url": "https://files.pythonhosted.org/packages/59/b9/bd01b8e23545757d441e18356e678c33470153e2166efbaa1c32be0555fc/django-subdomains-handler-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d5c399e0ce3661ae9a684c34970e2008", "sha256": "740de9a912bf123c8abdbcba2a6a013e1cc85ab89de3a455e7b1d73e4e13f47c" }, "downloads": -1, "filename": "django-subdomains-handler-0.2.tar.gz", "has_sig": false, "md5_digest": "d5c399e0ce3661ae9a684c34970e2008", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2783, "upload_time": "2013-10-17T21:25:08", "url": "https://files.pythonhosted.org/packages/59/b9/bd01b8e23545757d441e18356e678c33470153e2166efbaa1c32be0555fc/django-subdomains-handler-0.2.tar.gz" } ] }