Describe theming better

This commit is contained in:
Daniel Greenfeld 2013-08-01 12:46:38 +02:00
parent 7c3bc1e0b0
commit f0f9074ca2
2 changed files with 7 additions and 6 deletions

View file

@ -138,15 +138,18 @@ The default theme is whatever bootstrap is most current. Specifically:
.. code-block:: python
# settings.py
# In settings.py
INSTALLED_APPS += ('djadmin2.themes.djadmin2theme_default',)
ADMIN2_THEME_DIRECTORY = "djadmin2theme_default/"
If you create a new theme, you define it thus:
.. code-block:: python
# settings.py
ADMIN2_THEME_DIRECTORY = "djadmin2/foundation/"
# In settings.py
# Mythical theme! This does not exit... YET!
INSTALLED_APPS += ('djadmin2theme_foundation',)
ADMIN2_THEME_DIRECTORY = "djadmin2theme_foundation/"
Support this project!

View file

@ -128,7 +128,7 @@ Installing the custom theme
In the settings module, place the theme right after djadmin2 (change the highlighted line to your package's name):
.. code-block:: python
:emphasize-lines: 5
:emphasize-lines: 2, 5
########### DJANGO-ADMIN2 CONFIGURATION
ADMIN2_THEME_DIRECTORY = "djadmin2_dandy"
@ -138,8 +138,6 @@ In the settings module, place the theme right after djadmin2 (change the highlig
)
########### END DJANGO-ADMIN2 CONFIGURATION
.. todo:: Have someone besides pydanny test this!
Views and their Templates
-------------------------