{ "info": { "author": "Justin Engel", "author_email": "jtengel08@gmail.com", "bugtrack_url": null, "classifiers": [ "Framework :: Django :: 2.0", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3" ], "description": "======================\nDjango Bootstrap4 Nav\n======================\nThis library was created to make django work with some generic bootstrap4 templates. This library uses the basic\nfunctionality from django-bootstrap4. I use it to match templates with my ``django_materialize_nav`` library.\n\n\nSetup\n=====\nInstall the library.\n\n.. code-block:: python\n\n # project/settings.py\n\n INSTALLED_APPS = [\n \"bootstrap4_nav\",\n ...\n ]\n\n\nSetup Context Processors\n------------------------\nBootstrap4_nav comes with a context processor to use some settings to change the default base styling.\n\n.. code-block:: python\n\n # Context Processor to work with settings\n TEMPLATES = [\n {\n ...\n 'OPTIONS': {\n 'context_processors': [\n ...\n 'bootstrap4_nav.context_processors.get_context',\n ],\n },\n },\n ]\n\n\nAlternative way to get the standard context for views\n\n.. code-block:: python\n\n # views.py\n\n from bootstrap4_nav.context_processors import get_context\n\n\n def show_page(request):\n # Get the context with the style settings\n context = get_context(site_name='demo', title='Basic Content')\n\n context[\"object\"] = \"MyObject\"\n return render(request, \"my_page.html\", context)\n\n\nStyle\n=====\nThe base template can be used by extending the materialize base nav.\n\n.. code-block:: html\n\n {% extends \"bootstrap4_nav/base.html\" %}\n\n\n {% block nav_items %}\n
  • Page1
  • \n
  • Page2
  • \n
  • Page3
  • \n {% endblock %}\n\n {% block contents %}\n
    \n

    My Content goes here

    \n
    \n {% endblock %}\n\n\nStyling controls\n----------------\n\nBootstrap4_nav comes with several style options used in the template context variables listed below.\n\n * BOOTSTRAP4_SITE_NAME\n * BOOTSTRAP4_TITLE\n\nIf you went through the ``Setup Context Processors`` step then you can modify several settings to change the default style.\nThis is an alternative to manually providing all of the template context variables.\n\n\n.. code-block:: python\n\n # settings.py\n\n BOOTSTRAP4_SITE_NAME = None # Display this name in the navbar as the main name\n BOOTSTRAP4_TITLE = None # This is the page title displayed as the browser tab name", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/justengel-django/django_bootstrap4_nav/archive/v0.0.1.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/justengel-django/django_bootstrap4_nav", "keywords": "Django Bootstrap4 Nav CSS", "license": "Proprietary", "maintainer": "", "maintainer_email": "", "name": "django-bootstrap4-nav", "package_url": "https://pypi.org/project/django-bootstrap4-nav/", "platform": "any", "project_url": "https://pypi.org/project/django-bootstrap4-nav/", "project_urls": { "Download": "https://github.com/justengel-django/django_bootstrap4_nav/archive/v0.0.1.tar.gz", "Homepage": "https://github.com/justengel-django/django_bootstrap4_nav" }, "release_url": "https://pypi.org/project/django-bootstrap4-nav/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "Bootstrap template support for Django projects", "version": "0.0.1" }, "last_serial": 5866633, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "b6c47bd7efdf4cc5ca300f1d5fbf7975", "sha256": "71cd33c58e7e833e9de9e79f45300ef1b6e939fe40c53638171a2cef18edf562" }, "downloads": -1, "filename": "django_bootstrap4_nav-0.0.1.tar.gz", "has_sig": false, "md5_digest": "b6c47bd7efdf4cc5ca300f1d5fbf7975", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6837, "upload_time": "2019-09-21T17:24:02", "url": "https://files.pythonhosted.org/packages/10/25/809045d9b8bf4bea5777b349136d209d329f4182eefe8355a5c9a86d5689/django_bootstrap4_nav-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b6c47bd7efdf4cc5ca300f1d5fbf7975", "sha256": "71cd33c58e7e833e9de9e79f45300ef1b6e939fe40c53638171a2cef18edf562" }, "downloads": -1, "filename": "django_bootstrap4_nav-0.0.1.tar.gz", "has_sig": false, "md5_digest": "b6c47bd7efdf4cc5ca300f1d5fbf7975", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6837, "upload_time": "2019-09-21T17:24:02", "url": "https://files.pythonhosted.org/packages/10/25/809045d9b8bf4bea5777b349136d209d329f4182eefe8355a5c9a86d5689/django_bootstrap4_nav-0.0.1.tar.gz" } ] }