Use grappelli to add a template for the django admin background, grappelease Jango
Grappelli is the most star django template System on github.
Http://django-grappelli.readthedocs.org/en/latest/quickstart.html#installation
Copy codeThe Code is as follows:
Pip install django-grappelli
Settings. py
INSTALLED_APPS = (
'Grappelli ',
'Django. contrib. admin ',
)
Add url entry
Copy codeThe Code is as follows:
Urlpatterns = patterns ('',
(R' ^ grappelli/', include ('grappelli. urls'), # grappelli urls
(R '^ admin/', include (admin. site. urls), # admin site
)
STATICFILES_FINDER is defined in the official installation instructions.
Define template context processors
Copy codeThe Code is as follows:
TEMPLATE_CONTEXT_PROCESSORS = (
"Django. contrib. auth. context_processors.auth ",
"Django. core. context_processors.debug ",
"Django. core. context_processors.i18n ",
"Django. core. context_processors.media ",
"Django. core. context_processors.static ",
"Django. core. context_processors.tz ",
"Django. contrib. messages. context_processors.messages"
)
The default value of django1.7 has been added for convenience.