Arpit
Posted on June 21, 2022
Create django project and then create super user to access django admin.
python manage.py createsuperuser
Now django-admin-interface package. django-admin-interface is a modern responsive flat admin interface customizable by the admin itself.
pip install django-admin-interface
After installation, add "admin_interface", "colorfield" in INSTALLED_APPS in settings.py
# settings.py
INSTALLED_APPS = [
"admin_interface", #this
"colorfield", #this
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'qrcodeapp',
]
add this if in INSTALLED_APPS
"flat_responsive", # only if django version < 2.0
"flat", # only if django version < 1.9
Now migrate
python manage.py migrate
This package ships with optional themes as fixtures, they can be installed using the loaddata admin command. Optional themes are activated on installation.
DJANGO THEME (DEFAULT):
python manage.py loaddata admin_interface_theme_django.json
BOOTSTRAP THEME:
python manage.py loaddata admin_interface_theme_bootstrap.json
FOUNDATION THEME:
python manage.py loaddata admin_interface_theme_foundation.json
U.S. WEB DESIGN STANDARDS THEME:
python manage.py loaddata admin_interface_theme_uswds.json
Now run the server and hit http://127.0.0.1:8000/admin and now login yourself.
You can see themes get added
Package: django-admin-interface
Follow me for more <3
Happy Coding :)
Posted on June 21, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
November 20, 2024