Django offers a powerful, built-in admin interface. The admin is a superuser that can overlook, modify, and add or delete data in a database.
To learn how to set up Django admin, visit this shot.
The default admin template offers a simplistic design with the availability of basic admin functions. However, in some cases, a modified admin interface might be required. For this, Django offers a simple feature to override its admin template.
To view the default admin template you can access it in the django/contrib/admin/templates/admin
folder. In this situation you will most likely be using a virtual environment and can find this folder in the directory that contains all the installed libraries.
To override these templates, you will need to have an admin
folder in your templates
folder.
If you do not have a templates
folder, you can create it in the main project folder. To do so, you will have to change the project’s settings.py
. Find the TEMPLATES section and modify accordingly.
TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', // modified here 'DIRS': [os.path.join(BASE_DIR, 'templates/')], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], }, },]