项目作者: app-generator

项目描述 :
Django Dashboard - SB Admin | AppSeed
高级语言: CSS
项目地址: git://github.com/app-generator/django-dashboard-sb-admin.git
创建时间: 2020-09-02T04:21:09Z
项目社区:https://github.com/app-generator/django-dashboard-sb-admin

开源协议:Other

下载


SB Admin Django

Open-source Django Dashboard generated by AppSeed on top of an iconic design. For newcomers, SB Admin is one of the best open-source admin dashboard & control panel themes. Built on top of Bootstrap, SB Admin provides a range of responsive, reusable, and commonly used components.


🚀 Built with App Generator, Timestamp: 2022-09-18 07:49

  • Up-to-date dependencies
  • ✅ Database: sqlite
  • ✅ UI-Ready app, Django Native ORM
  • Session-Based authentication, Forms validation


SB Admin Dashboard - Starter generated by AppSeed


✨ Start the app in Docker

👉 Step 1 - Download the code from the GH repository (using GIT)

  1. $ git clone https://app-generator/django-sb-admin.git
  2. $ cd django-sb-admin


👉 Step 2 - Start the APP in Docker

  1. $ docker-compose up --build

Visit http://localhost:5085 in your browser. The app should be up & running.


✨ How to use it

Download the code

  1. $ git clone https://github.com/app-generator/django-sb-admin.git
  2. $ cd django-sb-admin


👉 Set Up for Unix, MacOS

Install modules via VENV

  1. $ virtualenv env
  2. $ source env/bin/activate
  3. $ pip3 install -r requirements.txt


Set Up Database

  1. $ python manage.py makemigrations
  2. $ python manage.py migrate


Start the app

  1. $ python manage.py runserver

At this point, the app runs at http://127.0.0.1:8000/.


👉 Set Up for Windows

Install modules via VENV (windows)

  1. $ virtualenv env
  2. $ .\env\Scripts\activate
  3. $ pip3 install -r requirements.txt


Set Up Database

  1. $ python manage.py makemigrations
  2. $ python manage.py migrate


Start the app

  1. $ python manage.py runserver

At this point, the app runs at http://127.0.0.1:8000/.


👉 Create Users

By default, the app redirects guest users to authenticate. In order to access the private pages, follow this set up:

  • Start the app via flask run
  • Access the registration page and create a new user:
    • http://127.0.0.1:8000/register/
  • Access the sign in page and authenticate
    • http://127.0.0.1:8000/login/


✨ Code-base structure

The project is coded using a simple and intuitive structure presented below:

  1. < PROJECT ROOT >
  2. |
  3. |-- core/ # Implements app configuration
  4. | |-- settings.py # Defines Global Settings
  5. | |-- wsgi.py # Start the app in production
  6. | |-- urls.py # Define URLs served by all apps/nodes
  7. |
  8. |-- apps/
  9. | |
  10. | |-- home/ # A simple app that serve HTML files
  11. | | |-- views.py # Serve HTML pages for authenticated users
  12. | | |-- urls.py # Define some super simple routes
  13. | |
  14. | |-- authentication/ # Handles auth routes (login and register)
  15. | | |-- urls.py # Define authentication routes
  16. | | |-- views.py # Handles login and registration
  17. | | |-- forms.py # Define auth forms (login and register)
  18. | |
  19. | |-- static/
  20. | | |-- <css, JS, images> # CSS files, Javascripts files
  21. | |
  22. | |-- templates/ # Templates used to render pages
  23. | |-- includes/ # HTML chunks and components
  24. | | |-- navigation.html # Top menu component
  25. | | |-- sidebar.html # Sidebar component
  26. | | |-- footer.html # App Footer
  27. | | |-- scripts.html # Scripts common to all pages
  28. | |
  29. | |-- layouts/ # Master pages
  30. | | |-- base-fullscreen.html # Used by Authentication pages
  31. | | |-- base.html # Used by common pages
  32. | |
  33. | |-- accounts/ # Authentication pages
  34. | | |-- login.html # Login page
  35. | | |-- register.html # Register page
  36. | |
  37. | |-- home/ # UI Kit Pages
  38. | |-- index.html # Index page
  39. | |-- 404-page.html # 404 page
  40. | |-- *.html # All other pages
  41. |
  42. |-- requirements.txt # Development modules - SQLite storage
  43. |
  44. |-- .env # Inject Configuration via Environment
  45. |-- manage.py # Start the app - Django default start script
  46. |
  47. |-- ************************************************************************


✨ PRO Version

For more components, pages and priority on support, feel free to take a look at this amazing starter:

Soft UI Dashboard is a premium Bootstrap 5 Design now available for download in Django. Made of hundred of elements, designed blocks, and fully coded pages, Soft UI Dashboard PRO is ready to help you create stunning websites and web apps.


Soft UI Dashboard PRO - Starter generated by AppSeed.



SB Admin Django - Open-source starter generated by AppSeed Generator.