Giter VIP home page Giter VIP logo

blog-django-install-theme's Introduction

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.


Django, Install Soft Dashboard Theme - Index Page.


โœจ Create the project

๐Ÿ‘‰ 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

Django, Install Soft Dashboard Theme - Default Django Page.


๐Ÿ‘‰ Create a superuser

$ python manage.py createsuperuser

At this point we can access the admin section that uses a minimal style.


Django, Install Soft Dashboard Theme - Default Admin UI.


โœจ Install Soft UI Design

๐Ÿ‘‰ 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

Django, Install Soft Dashboard Theme - Default Admin UI.


โœจ Add a new app

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, Install Soft Dashboard Theme - New Sign UI page.



Django, How to Install Soft Dashboard Theme - Open-source sample provided by AppSeed

blog-django-install-theme's People

Contributors

app-generator avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.