Arizona State University Web Standards Theme for Django
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:
{% extends '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 %}
Blocks and Layout Order
The base template defines the followig blocks, listed in the order that the renderer applies them. Most blocks are empty unless otherwise noted. Child blocks names appear indented under their parent. Be careful when overriding parent blocks, as this effectively wipes out any customized content in child blocks.
html_attrs: interpolated inside the HTML opening tag.
title: appears under the TITLE element.
extratitle: appears under the TITLE element.
extrastyle: appears under the HTML>HEAD element.
extrahead: appears under the HTML>HEAD element.
body_attrs: interpolated under the BODY opening tag
asu_main_header: appears under HTML>HEAD, after the standard ASU header section
asu_login_link: (non-empty) ASU login/logout link inside the subhead navbar.
site_name: Section that identifies the name your site/web application. Not to be confused with a page title.
asu_site_title_main
asu_site_title_extra
navbar: The main navbar section. See Bootstrap v3 docs for more info: https://getbootstrap.com/components/#navbar
navbar_brand_link_text: brand text
navbar_content: appears under a navbar UL element. Customize by adding LI elements.
main_content: The page-specific body of the page. Appears under DIV#content.site-content element.
footer: top-level container for the “super footer” (for site-specific content) and the “global footer” (ASU standard content that appears on the bottom of every page).
super_footer:
super_footer_brand_col: Leftmost column of the super footer row. Column width is .col-md-4.col-sm-12.
super_footer_brand: brand text to appear in the left-most column of the site-specific footer.
super_footer_content: blank block that appears ender the super-footer after the brand column. Note: since this block appears in a .row you will want to put any custom content in a bootstrap “column”, e.g. <div class=".col-md-8">my footer content</div>
global_footer: (non-empty): the ASU Standard footer. You probably don’t want to override this.
extrajs: section for adding SCRIPT includes.
google_analytics: (non-empty) google analytics init script. Override with empty block to remove analytics gathering.
google_analytics_tracking_id: override w/ your google analytics API key
Metadata
Release files for django-asutheme3 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-asutheme3-0.3.0.tar.gz | 1.4 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_asutheme3-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.7 MB
Release files / django-asutheme3-0.3.0.tar.gz
| Download URL | django-asutheme3-0.3.0.tar.gz |
|---|---|
| Size | 1.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9cf474df716868ecca68b40e84a4d93cdd96596e5aeee3222164f4b306e8bd30
|
|
BLAKE2b-256 checksum How to use checksums |
030dcf1c505ec12f7e87bc6ed7cb47d4176157b5735acc8259d15dff49bdbf9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/57.0.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5
|
Release files / django_asutheme3-0.3.0-py3-none-any.whl
| Download URL | django_asutheme3-0.3.0-py3-none-any.whl |
|---|---|
| Size | 1.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d0f2b21f4b600c7dfca5e7b55499f6f770f964b67df02f4396cf83ac103e2efb
|
|
BLAKE2b-256 checksum How to use checksums |
c7e16d2a42ddfacdd58cab0a1f3c8d2c7c1d50e6a8e1d4aa332001f31c75a2e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/57.0.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5
|
Security for django-asutheme3 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.