Django - Install Soft Dashboard Theme
This free sample explains how to create from scratch a new Django project, add authentication and improve the UI by installing Soft Dashboard, a modern BS5 design from Creative-Tim
.
๐ Create the directory
$ mkdir my-django-project
$ cd my-django-project
๐ Install the dependencies
$ virtualenv env
$ source env/bin/activate
$ pip install Django
๐ Create the Django project
$ django-admin startproject core .
Set Up the database
$ python manage.py makemigrations
$ python manage.py migrate
๐ Start the app
$ python manage.py runserver
๐ Create a superuser
$ python manage.py createsuperuser
At this point we can access the admin
section that uses a minimal style.
๐ Install the PyPi package
$ pip install django-admin-soft-dashboard
๐ Configure Django to use the new design
Add admin_soft
application to the INSTALLED_APPS
setting of your Django project settings.py
file (note it should be before django.contrib.admin
):
INSTALLED_APPS = (
...
'admin_soft.apps.AdminSoftDashboardConfig',
'django.contrib.admin',
)
๐ Start the app and access the new admin design
$ python manage.py runserver
This section explains how to add a minimal app that handles ordinary users registration.
๐ Create the new app
$ django-admin startapp authentication
Update the app settings (
INSTALLED_APPS
section)
# core/python.py (truncated content)
...
INSTALLED_APPS = [
'admin_soft.apps.AdminSoftDashboardConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'authentication', # <-- NEW
]
...
๐ Start the project and
access the new admin
design
$ python manage.py runserver
Django, How to Install Soft Dashboard Theme - Open-source sample provided by AppSeed