Skip to content

Microdisseny/django-theme-microdisseny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Django Theme Microdisseny

Install

pip install -e git+https://github.com/Microdisseny/django-theme-microdisseny.git#egg=theme_microdisseny

or add to your requirements.txt file:

-e git+https://github.com/Microdisseny/django-theme-microdisseny.git#egg=django_theme_microdisseny

Use

Add 'theme_microdisseny' to 'INSTALLED_APPS', before 'django.contrib.admin'

INSTALLED_APPS = [
    ...
    'theme_microdisseny',
    ...
    'django.contrib.admin',
    ...
]

Customize

Create a ''base_site.html'' file in ''your_app/templates/admin'', with an extends line like in this example:

{% extends "theme_microdisseny/base_site.html" %}

{% block branding %}
<h1 id="site-name"><img src="/foo/bar/static/logo.svg" /><a href="{% url 'admin:index' %}">{{ site_header|default:_('Django administration') }}</a></h1>
{% endblock %}

About

Microdisseny theme for the Django Admin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published