mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-04-27 01:54:46 +00:00
Describe theming better
This commit is contained in:
parent
7c3bc1e0b0
commit
f0f9074ca2
2 changed files with 7 additions and 6 deletions
|
|
@ -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!
|
||||
|
|
|
|||
|
|
@ -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
|
||||
-------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue