This project provides base templates for use in Django apps that need to conform to the ASU University Web Design Standards.
It relies on the assets created by the ASU Web Standards Bootstrap project provided by the Global Institute of Sustainability.
Installation & Usage
Install using pip (or easy_install):
pip install django-asutheme
Add 'asutheme' to your INSTALLED_APPS:
INSTALLED_APPS = (
...
'django.contrib.admin',
'asutheme',
)
Add 'asutheme.context_processors.container_style' to your list of context processors. By default the containers are fixed, if you would like them to be fluid add to your settings file. ASU_THEME_FLUID = True to your settings file.
You can now extend the base template and add to/override defined blocks:
{% extend asutheme/base.html %}
{% block asu_site_title_main %}
<a href="https://lib.asu.edu" title="Arizona State University - Libraries">ASU Libraries</a>
{% endblock %}
{% block navbar_content %}
<li><a href="/media">Media</a></li>
{% endblock %}
{% block super_footer_brand %}
<img src="/static/images/libraries_logo_footer.png" alt="ASU Libraries Logo">
<address>
...
</address>
{% endblock %}
Release files for django-asutheme 0.2.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-asutheme-0.2.7.tar.gz | 1.3 MB | Details |
Release files / django-asutheme-0.2.7.tar.gz
| Download URL | django-asutheme-0.2.7.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3231cbd4292a8b321216d93d1de6db0f6e21140dade2d1f225aefd0fa64a604e
|
|
BLAKE2b-256 checksum How to use checksums |
61ec74e8877cf60cae571733bfb0f5b5068abe4620ef5ba8789ee04edce26d47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |