{ "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 Materialize Nav\n======================\nThis library was created to make django work with materializecss. \n\n\nSetup\n=====\nInstall the library.\n\n.. code-block:: python\n\n # project/settings.py\n\n INSTALLED_APPS = [\n \"materialize_nav\",\n ...\n ]\n\n\nSetup Context Processors\n------------------------\nMaterialize 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 'materialize_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 materialize_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', primary_color='teal')\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 \"materialize_nav/base.html\" %}\n\n\n {% block nav_items %}\n
My Content goes here
\n