https://github.com/mgaitan/django-milligram
Django base template powered by Milligram
https://github.com/mgaitan/django-milligram
base-css css django django-templates milligram rapid-development theme
Last synced: 5 months ago
JSON representation
Django base template powered by Milligram
- Host: GitHub
- URL: https://github.com/mgaitan/django-milligram
- Owner: mgaitan
- License: other
- Created: 2017-05-25T04:08:14.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-25T04:09:29.000Z (almost 9 years ago)
- Last Synced: 2025-10-14T08:32:02.926Z (5 months ago)
- Topics: base-css, css, django, django-templates, milligram, rapid-development, theme
- Language: HTML
- Homepage:
- Size: 34.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Django-Milligram
=================
``django-miligram`` is a small django app to provide a base template
for your django project based on the open source `Milligram front-end framework `_
django-milligram also works as a `pinax `_ theme.
Getting Started
-----------------
Include ``django-milligram`` in your requirements file and include
``milligram`` in your ``INSTALLED APPS``.
Add ``django.core.context_processors.request`` to your ``TEMPLATE_CONTEXT_PROCESSORS``
to ensure the user selector and site name work correctly.
Make sure both template loaders and staticfiles finders includes
app directories.
Site name comes from Sites fixture.
Your ``site_base.html`` should extend ``milligram/base.html`` and should provide
``footer`` and ``nav`` blocks (the latter should just be a ul of li of a links).
Your pages should have blocks ``head_title`` and ``body`` and should extend
``site_base.html``.
The url name ``home`` should be defined as the homepage.
Examples
---------
- http://declaraciones.metrodelegados.com.ar
License
-------
It's released under the MIT license.
Contribute
-----------
Pull requests and ideas are welcome.
In order to foster a kind, inclusive, and harassment-free community, this project
project adheres to the `Python Community Code of Conduct `_.