{ "info": { "author": "Michael F. Covington", "author_email": "mfcovington@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.10", "Framework :: Django :: 1.11", "Framework :: Django :: 1.5", "Framework :: Django :: 1.6", "Framework :: Django :: 1.7", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Framework :: Django :: 2.0", "Framework :: Django :: 2.1", "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.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Documentation", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "********************************\ndjango-project-home-templatetags\n********************************\n\n``django-project-home-templatetags`` is a collection of Django templatetags to flexibly incorporate links and breadcrumbs from app pages to the homepage of a project.\n\nIf ``PROJECT_HOME_NAMESPACE`` is not defined to ``settings.py``, these template tags are silenced.\n\nSource code is available on GitHub at `mfcovington/django-project-home-templatetags `_.\n\n.. contents:: :local:\n\n\nInstallation\n============\n\n**PyPI**\n\n.. code-block:: sh\n\n pip install django-project-home-templatetags\n\n\n**GitHub (development branch)**\n\n.. code-block:: sh\n\n pip install git+http://github.com/mfcovington/django-project-home-templatetags.git@develop\n\n\nConfiguration\n=============\n\nAdd ``project_home_tags`` to ``INSTALLED_APPS`` in ``settings.py``:\n\n.. code-block:: python\n\n INSTALLED_APPS = (\n ...\n 'project_home_tags',\n )\n\n\nSpecify the ``PROJECT_HOME_NAMESPACE`` in ``settings.py``:\n\n.. code-block:: python\n\n PROJECT_HOME_NAMESPACE = 'project_name:index_view'\n\n\nRather than using an internal namespace, you can also set ``PROJECT_HOME_NAMESPACE`` to a specific URL:\n\n.. code-block:: python\n\n PROJECT_HOME_NAMESPACE = 'djangoproject.com'\n\n\nBy default, a link created with a ``project_home_tags`` template tag has 'Home' as its text. This can be overridden by defining an optional project-wide label with ``PROJECT_HOME_LABEL`` in ``settings.py``:\n\n.. code-block:: python\n\n PROJECT_HOME_LABEL = 'Homepage' # Optional; Default is 'Home'\n\n\nBoth the default and the project-wide label can be overridden by passing a string to the template tag. For example:\n\n.. code-block:: python\n\n {% project_home_breadcrumb_bs4 'Custom Label' %}\n\n\nTemplate Tags\n=============\n\n``{% load project_home %}``\n--------------------------------\n\nLoads the project home template tags in your Django template.\n\n\n``{% project_home_url %}``\n--------------------------\n\nA template tag to return the project's home URL.\n\n.. code-block:: python\n\n {% load project_home %}\n\n Home\n\n\nIf ``settings.PROJECT_HOME_NAMESPACE`` is defined as ``'project_name:index_view'``, this is equivalent to:\n\n.. code-block:: python\n\n Home\n\n\n``{% project_home_breadcrumb_bs3 %}``\n-------------------------------------\n\nA template tag to return the project's home URL and label formatted as a `Bootstrap 3 breadcrumb `_.\n\n.. code-block:: python\n\n {% load project_home %}\n\n
    \n {% project_home_breadcrumb_bs3 %} {# <--- #}\n
  1. List of Objects
  2. \n
  3. Object Detail
  4. \n
\n\n\nIf ``settings.PROJECT_HOME_NAMESPACE`` is defined as ``'project_name:index_view'``, this is equivalent to:\n\n.. code-block:: python\n\n
    \n
  1. Home
  2. {# <--- #}\n
  3. List of Objects
  4. \n
  5. Object Detail
  6. \n
\n\n\n``{% project_home_breadcrumb_bs4 %}``\n-------------------------------------\n\nA template tag to return the project's home URL and label formatted as a `Bootstrap 4 breadcrumb `_.\n\n.. code-block:: python\n\n {% load project_home %}\n\n
    \n {% project_home_breadcrumb_bs4 %} {# <--- #}\n
  1. List of Objects
  2. \n
  3. Object Detail
  4. \n
\n\n\nIf ``settings.PROJECT_HOME_NAMESPACE`` is defined as ``'project_name:index_view'``, this is equivalent to:\n\n.. code-block:: python\n\n
    \n
  1. Home
  2. {# <--- #}\n
  3. List of Objects
  4. \n
  5. Object Detail
  6. \n
\n\n\n*Version 0.2.1*\n\n\nRevision History\n================\n\n0.2.1 2018-12-09\n\n- Don't modify `home_namespace` globally\n- Exclude `.pyc` files from distribution\n\n\n0.2.0 2018-12-08\n\n- Allow `settings.PROJECT_HOME_NAMESPACE` to be an actual URL, rather than just an internal namespace\n\n\n0.1.0 2018-11-20\n\n- A collection of Django templatetags to flexibly incorporate links and breadcrumbs from app pages to the homepage of a project\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mfcovington/django-project-home-templatetags", "keywords": "templatetags home project breadcrumbs", "license": "BSD License", "maintainer": "", "maintainer_email": "", "name": "django-project-home-templatetags", "package_url": "https://pypi.org/project/django-project-home-templatetags/", "platform": "", "project_url": "https://pypi.org/project/django-project-home-templatetags/", "project_urls": { "Homepage": "https://github.com/mfcovington/django-project-home-templatetags" }, "release_url": "https://pypi.org/project/django-project-home-templatetags/0.2.1/", "requires_dist": [ "Django" ], "requires_python": "", "summary": "A collection of Django templatetags to flexibly incorporate links and breadcrumbs from app pages to the homepage of a project", "version": "0.2.1" }, "last_serial": 4576993, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "73d406548fe678c072ae7694ad85fa4a", "sha256": "944c35fc8c00f7e209eb2585208d399be31a9101b13b5ccbe31174326968c493" }, "downloads": -1, "filename": "django_project_home_templatetags-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "73d406548fe678c072ae7694ad85fa4a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13180, "upload_time": "2018-11-21T07:01:18", "url": "https://files.pythonhosted.org/packages/b6/5a/d35e62aded890fa0fb1df77fef58aedfddd4a2626c0514dfb5819c1362de/django_project_home_templatetags-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "50464a50d3729f11fa212f0e678e42cf", "sha256": "8fb4f2b93d8f0becd434ed3516824fc0084f80b2ad551ed98aec1478fb92da34" }, "downloads": -1, "filename": "django-project-home-templatetags-0.1.0.tar.gz", "has_sig": false, "md5_digest": "50464a50d3729f11fa212f0e678e42cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7704, "upload_time": "2018-11-21T07:01:21", "url": "https://files.pythonhosted.org/packages/c3/09/36dfcef41ab06ed5e55d1d3f949b1a1d508a3741acc3e86182b0844eb98e/django-project-home-templatetags-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "e37325052a0f880ec167a6c76dd3bdf8", "sha256": "a948b61d8d8602101586de76040e69be70eaaaf9292f174ec8ee33485606e0d5" }, "downloads": -1, "filename": "django_project_home_templatetags-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e37325052a0f880ec167a6c76dd3bdf8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 12542, "upload_time": "2018-12-08T23:59:23", "url": "https://files.pythonhosted.org/packages/cd/3c/56be2585b285b20dffd39fec31aede23e394dc3ed91432b6d29f1d40e0b7/django_project_home_templatetags-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "141974bc7df03cb21874c2a43adbb4ed", "sha256": "072343ccb2a7a79ab1f5f3f2eadccec40c2254e7b9bc2a2049e94786baa12866" }, "downloads": -1, "filename": "django-project-home-templatetags-0.2.0.tar.gz", "has_sig": false, "md5_digest": "141974bc7df03cb21874c2a43adbb4ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8150, "upload_time": "2018-12-08T23:59:25", "url": "https://files.pythonhosted.org/packages/30/2a/03ef16816d6d06ca774b2fcdb46776aa9a46e1e733d9b2bad201211f57e5/django-project-home-templatetags-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "de545026dcec2426788ad29ddc13babc", "sha256": "ee73dd6a5f4cc0f6299cee17089636d06ab6e328c1cf14a37b8e0287d84a5aa7" }, "downloads": -1, "filename": "django_project_home_templatetags-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "de545026dcec2426788ad29ddc13babc", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5767, "upload_time": "2018-12-09T09:38:47", "url": "https://files.pythonhosted.org/packages/7b/55/86bb1873a7af1139b0b3864d56659c0ccdb072d436b109583bd8ed9926a3/django_project_home_templatetags-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "533a94ac87c687d89da6217c4c134220", "sha256": "4fd357e8a16607015edaaa473c99f45c6dd8742bafd8ae2363ac19d3bc17676c" }, "downloads": -1, "filename": "django-project-home-templatetags-0.2.1.tar.gz", "has_sig": false, "md5_digest": "533a94ac87c687d89da6217c4c134220", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5287, "upload_time": "2018-12-09T09:38:48", "url": "https://files.pythonhosted.org/packages/16/b0/50a45fedeed1dcee271356f2b8cf680e75648947317a69749231ae642f5b/django-project-home-templatetags-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "de545026dcec2426788ad29ddc13babc", "sha256": "ee73dd6a5f4cc0f6299cee17089636d06ab6e328c1cf14a37b8e0287d84a5aa7" }, "downloads": -1, "filename": "django_project_home_templatetags-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "de545026dcec2426788ad29ddc13babc", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5767, "upload_time": "2018-12-09T09:38:47", "url": "https://files.pythonhosted.org/packages/7b/55/86bb1873a7af1139b0b3864d56659c0ccdb072d436b109583bd8ed9926a3/django_project_home_templatetags-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "533a94ac87c687d89da6217c4c134220", "sha256": "4fd357e8a16607015edaaa473c99f45c6dd8742bafd8ae2363ac19d3bc17676c" }, "downloads": -1, "filename": "django-project-home-templatetags-0.2.1.tar.gz", "has_sig": false, "md5_digest": "533a94ac87c687d89da6217c4c134220", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5287, "upload_time": "2018-12-09T09:38:48", "url": "https://files.pythonhosted.org/packages/16/b0/50a45fedeed1dcee271356f2b8cf680e75648947317a69749231ae642f5b/django-project-home-templatetags-0.2.1.tar.gz" } ] }