{ "info": { "author": "Mike Yumatov", "author_email": "mike@yumatov.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: ISC License (ISCL)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP" ], "description": "Django Sites Utils\n==================\n\n.. image:: https://secure.travis-ci.org/trilan/django-sitesutils.png?branch=develop\n\nWith ``django-sitesutils`` you're able to access current site, using\n``request.site`` everywhere you can access ``request`` object.\n\nCurrent site is detected using host domain from ``request`` object and\n``SITE_ID`` project setting as a fallback. If site is found, then\n``request.site`` is set to the respective ``Site`` model object from\n``django.contrib.site`` app, otherwise ``request.site`` is a\n``django.contrib.sites.models.RequestSite`` instance.\n\nInstallation\n------------\n\n1. Install ``django-sitesutils`` using pip::\n\n $ pip install django-sitesutils\n\n2. Add ``RequestSiteMiddleware`` to your ``MIDDLEWARE_CLASSES`` setting::\n\n MIDDLEWARE_CLASSES = (\n # ...\n 'sitesutils.middleware.RequestSiteMiddleware',\n )\n\n This middleware will set ``site`` attribute for the ``request`` object.\n This attribute is evaluated lazily, only when you access it.\n\n3. If you want to access current site in templates, add ``site`` context\n processor to your ``TEMPLATE_CONTEXT_PROCESSORS`` settings::\n\n TEMPLATE_CONTEXT_PROCESSORS = (\n # ...\n 'sitesutils.context_processors.site',\n )\n\nContributing\n------------\n\nFeel free to fork, send pull requests or report bugs and issues on github.", "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/trilan/django-sitesutils", "keywords": null, "license": "ISC", "maintainer": null, "maintainer_email": null, "name": "django-sitesutils", "package_url": "https://pypi.org/project/django-sitesutils/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-sitesutils/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/trilan/django-sitesutils" }, "release_url": "https://pypi.org/project/django-sitesutils/0.1.2/", "requires_dist": null, "requires_python": null, "summary": "Utils for Django's sites framework", "version": "0.1.2" }, "last_serial": 790664, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "e91d831f86166e29dd60e5d3210b2e74", "sha256": "188b781520de2bfe6aaad7b0f23fe841111c35b834e06796a205535a08cdbc07" }, "downloads": -1, "filename": "django-sitesutils-0.1.tar.gz", "has_sig": false, "md5_digest": "e91d831f86166e29dd60e5d3210b2e74", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4027, "upload_time": "2012-08-17T12:16:14", "url": "https://files.pythonhosted.org/packages/83/d1/6c466909f620f5c1c826f76a1a781eab6beb1e7413c2aa4e322d9d9569cb/django-sitesutils-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "2b42e9f782fe063c25faab9637935749", "sha256": "7f6df518948f493b3dda4d7ea22a18cae7342b60a16b33296d2055ec911b9862" }, "downloads": -1, "filename": "django-sitesutils-0.1.1.tar.gz", "has_sig": false, "md5_digest": "2b42e9f782fe063c25faab9637935749", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4323, "upload_time": "2012-08-21T13:06:19", "url": "https://files.pythonhosted.org/packages/27/49/e35010ba46b9f752b2fee6343f922aafd24492502eaa297afb608850c16c/django-sitesutils-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "3f15238b80164c6b7a38305c5f4e36d2", "sha256": "58c14adac7cdd860a324d6535fd4296b2815a4d3defb5f110e8cba4802a5b05c" }, "downloads": -1, "filename": "django-sitesutils-0.1.2.tar.gz", "has_sig": false, "md5_digest": "3f15238b80164c6b7a38305c5f4e36d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4339, "upload_time": "2012-08-22T12:00:14", "url": "https://files.pythonhosted.org/packages/bc/cb/fe4f7323e9046ea0fe8e3ebfc5ab4f30fe2821d31d55a141e7fb832fb7f6/django-sitesutils-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3f15238b80164c6b7a38305c5f4e36d2", "sha256": "58c14adac7cdd860a324d6535fd4296b2815a4d3defb5f110e8cba4802a5b05c" }, "downloads": -1, "filename": "django-sitesutils-0.1.2.tar.gz", "has_sig": false, "md5_digest": "3f15238b80164c6b7a38305c5f4e36d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4339, "upload_time": "2012-08-22T12:00:14", "url": "https://files.pythonhosted.org/packages/bc/cb/fe4f7323e9046ea0fe8e3ebfc5ab4f30fe2821d31d55a141e7fb832fb7f6/django-sitesutils-0.1.2.tar.gz" } ] }