{ "info": { "author": "Praekelt Foundation", "author_email": "dev@praekelt.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "Django Section\n==============\n**Django app for determining site section by request.**\n\n.. contents:: Contents\n :depth: 5\n\nInstallation\n------------\n\n#. Add ``section.context_processors.section`` to your ``TEMPLATE_CONTEXT_PROCESSORS`` setting::\n\n TEMPLATE_CONTEXT_PROCESSORS = (\n ...other context processors...,\n \"section.context_processors.section\",\n )\n\n#. Add ``SECTIONS`` setting to your settings file in the form::\n\n # Tuple of dictionaries used to match URL pattern names to site sections. \n # example: ({'name': '
', 'matching_pattern_names': ('', '')},)\n SECTIONS = (\n {'name': 'home', 'matching_pattern_names': ('home',)},\n )\n\nUsage\n-----\n\nIf you're using generic views or `RequestContext `_ you'll now automagically have a ``section`` variable added to context and available in your templates containing the value of ``name`` as defined for the current view in your ``SECTIONS`` setting. \n\n**NOTE**: If the current path can not be resolved to a defined section, the first section as defined in the ``SECTION`` settings is returned. This allows you to setup a global fallback section, i.e. *home*.\n\nAuthors\n=======\n\nPraekelt Foundation\n-------------------\n* Shaun Sephton\n\nChangelog\n=========\n\n0.0.2 (2011-08-24)\n------------------\n#. Docs, tests.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/praekelt/django-section", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-section", "package_url": "https://pypi.org/project/django-section/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-section/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/praekelt/django-section" }, "release_url": "https://pypi.org/project/django-section/0.0.3/", "requires_dist": null, "requires_python": null, "summary": "Django app for determining site section by request.", "version": "0.0.3" }, "last_serial": 4624025, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "731082ad262fdd83ee417ab8290014cc", "sha256": "3a2a661a5a30e6e1a2c211db3ad54aa80ed95cc5d8994e6022e93ab4cfdb4a93" }, "downloads": -1, "filename": "django_section-0.0.1-py2.5.egg", "has_sig": false, "md5_digest": "731082ad262fdd83ee417ab8290014cc", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 4538, "upload_time": "2010-06-15T09:16:29", "url": "https://files.pythonhosted.org/packages/ab/90/2c0e7e4d820084b1510c90d49ce567964a09cd51acb1409b75cd2e3a3359/django_section-0.0.1-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "55b5022920be6534919607911b0a95c2", "sha256": "6ac0afc1ecf1365f027a3c52c035af086e1730f9c88f091d0221ff9289bc6046" }, "downloads": -1, "filename": "django_section-0.0.1-py2.6.egg", "has_sig": false, "md5_digest": "55b5022920be6534919607911b0a95c2", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 4531, "upload_time": "2010-06-15T09:15:59", "url": "https://files.pythonhosted.org/packages/5b/9b/65e03d93292e26c42f9d928f4dafef9b313b8f0b15ffb9279ba0325e62d1/django_section-0.0.1-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "216e690ab7db6a5b5bd54eda68d3569c", "sha256": "ea1df6dc69b9a38cc0e26dfe844adb6459c7890a84adfe1789188ee1753eb2c5" }, "downloads": -1, "filename": "django-section-0.0.1.tar.gz", "has_sig": false, "md5_digest": "216e690ab7db6a5b5bd54eda68d3569c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3352, "upload_time": "2010-06-15T09:16:14", "url": "https://files.pythonhosted.org/packages/b3/4a/5dee6c5b38e193ad75562c7265fa0c5873e1fb68b2d0457f603f9dbd8013/django-section-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "1f98350fbceb9115d79cfae16d2a01ae", "sha256": "0f27ddc431a2d6bdbe0371f633e51d23de5d45bffa3cf98c2952b7ec2f3776b7" }, "downloads": -1, "filename": "django_section-0.0.2-py2.5.egg", "has_sig": false, "md5_digest": "1f98350fbceb9115d79cfae16d2a01ae", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 3688, "upload_time": "2011-01-06T12:11:19", "url": "https://files.pythonhosted.org/packages/74/49/0bb376ef309e19b967da5813dd0bc3a269c3e1c389898772a6b1fc7299bb/django_section-0.0.2-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "77517b929dc0a1feb20f4f4e82131d99", "sha256": "776baa03e6f4088c785b95709df4065de7ba3becb0c6403354dd8f7070660863" }, "downloads": -1, "filename": "django_section-0.0.2-py2.6.egg", "has_sig": false, "md5_digest": "77517b929dc0a1feb20f4f4e82131d99", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 3685, "upload_time": "2011-01-06T12:10:59", "url": "https://files.pythonhosted.org/packages/fb/59/a056e768a1a9f4e50a12548cf341fb1033281fe187cf6f783e63424206b3/django_section-0.0.2-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "cb8231c0672fc3d037da4038452579cd", "sha256": "c0579abba5c192012f5bb70cf0cad842ce77c0cbc2338530c1e13436ed186d6b" }, "downloads": -1, "filename": "django-section-0.0.2.tar.gz", "has_sig": false, "md5_digest": "cb8231c0672fc3d037da4038452579cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3052, "upload_time": "2011-01-06T12:11:00", "url": "https://files.pythonhosted.org/packages/ec/65/ced4ab83647c307bbde859c6805cea9c34794c37667b21f414a961056cd4/django-section-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "13ea89676fa15d35320fee7cf1c4a5e8", "sha256": "22a4f62c9694c5021e19b3e422a2261782005df19615a680f1f0f8f560676ea0" }, "downloads": -1, "filename": "django_section-0.0.3-py2.6.egg", "has_sig": false, "md5_digest": "13ea89676fa15d35320fee7cf1c4a5e8", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 6362, "upload_time": "2011-08-24T11:34:34", "url": "https://files.pythonhosted.org/packages/59/5d/b19d4e2b44c738422a72ad74bef12db09283fa1163f7aebfa65ce2628c22/django_section-0.0.3-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "d84d02cea41444a967ecdd8b61226c87", "sha256": "613200870551d8dbf62dc88c381305b3a0999373de3517d39788444ec606aad4" }, "downloads": -1, "filename": "django_section-0.0.3-py2.7.egg", "has_sig": false, "md5_digest": "d84d02cea41444a967ecdd8b61226c87", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 6349, "upload_time": "2011-08-24T11:34:14", "url": "https://files.pythonhosted.org/packages/7d/5d/1375824d2cb30b3ac017bc9dce36d98aef4d95bcad4a8011a0b65c012bf3/django_section-0.0.3-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "d74c4177d445847a73b1d8e87495881b", "sha256": "88121c8877d9077f46e6c95cdb6b37d69b09f02ee70280b56ef715395937ace5" }, "downloads": -1, "filename": "django-section-0.0.3.tar.gz", "has_sig": false, "md5_digest": "d74c4177d445847a73b1d8e87495881b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3998, "upload_time": "2011-08-24T11:34:16", "url": "https://files.pythonhosted.org/packages/50/0f/59727ed5c7ab99d30c59bc53abafffb34b2899f3ecfa1580999cc171c8e0/django-section-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "13ea89676fa15d35320fee7cf1c4a5e8", "sha256": "22a4f62c9694c5021e19b3e422a2261782005df19615a680f1f0f8f560676ea0" }, "downloads": -1, "filename": "django_section-0.0.3-py2.6.egg", "has_sig": false, "md5_digest": "13ea89676fa15d35320fee7cf1c4a5e8", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 6362, "upload_time": "2011-08-24T11:34:34", "url": "https://files.pythonhosted.org/packages/59/5d/b19d4e2b44c738422a72ad74bef12db09283fa1163f7aebfa65ce2628c22/django_section-0.0.3-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "d84d02cea41444a967ecdd8b61226c87", "sha256": "613200870551d8dbf62dc88c381305b3a0999373de3517d39788444ec606aad4" }, "downloads": -1, "filename": "django_section-0.0.3-py2.7.egg", "has_sig": false, "md5_digest": "d84d02cea41444a967ecdd8b61226c87", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 6349, "upload_time": "2011-08-24T11:34:14", "url": "https://files.pythonhosted.org/packages/7d/5d/1375824d2cb30b3ac017bc9dce36d98aef4d95bcad4a8011a0b65c012bf3/django_section-0.0.3-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "d74c4177d445847a73b1d8e87495881b", "sha256": "88121c8877d9077f46e6c95cdb6b37d69b09f02ee70280b56ef715395937ace5" }, "downloads": -1, "filename": "django-section-0.0.3.tar.gz", "has_sig": false, "md5_digest": "d74c4177d445847a73b1d8e87495881b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3998, "upload_time": "2011-08-24T11:34:16", "url": "https://files.pythonhosted.org/packages/50/0f/59727ed5c7ab99d30c59bc53abafffb34b2899f3ecfa1580999cc171c8e0/django-section-0.0.3.tar.gz" } ] }