How to add Site Header, Site Title, Index Title in a Django Project?
Automatic admin interface one of the most powerful parts of Django. Metadata is read from your models to provide a quick, model-centric interface where trusted users can manage content on your site. The admin’s recommended use is limited to an organization’s internal management tool. It’s not intended for building your entire front end around.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning - Basic Level Course
'django.contrib.admin'along with its dependencies –
django.contrib.sessions– to your INSTALLED_APPS setting.
- Configure a DjangoTemplates backend in your TEMPLATES setting with
django.contrib.auth.context_processors.auth, and dja
ngo.contrib.messages.context_processors.messagesin the ‘context_processors’ option of OPTIONS.
- If you have used cutomised MIDDLEWARE setting,
django.contrib.messages.middleware.MessageMiddlewaremust be included.
Make following changes in
DJANGO ADMIN CUSTOMISATION:
The Python code enables to add site_header, site_heading and index_title.