django volt dashboard pro2
v1.0.12
Django Dashboard在 Volt Dashboard PRO(高級版)(一種現代 Bootstrap 儀表板設計)之上使用基本模組、資料庫、ORM 和部署腳本進行編碼。 Volt Pro 是一款高階 Bootstrap 5 管理儀表板,具有 800 多個元件、20 個範例頁面和 10 個以 Vanilla Javascript 編寫的完全自訂外掛程式。
Product pageLIVE DemoLearn how to use and update the product基礎版
Up-to-date dependencies 、活動版本控制Session-Based authenticationDocker加長版
AuthenticationTask ModuleTransactions ModuleUsers ManagementExtended user profileAdmins )
第 1 步- 下載程式碼並解壓縮原始碼(需要
purchase)。
$ # Get the code
$ unzip django-volt-dashboard-pro.zip
$ cd django-volt-dashboard-pro步驟2-在
Docker中啟動應用程式
$ docker-compose up --build 在瀏覽器中造訪http://localhost:5085 。該應用程式應該已啟動並正在運行。
下載代碼並解壓縮原始碼(需要
purchase)。
$ # Get the code
$ unzip django-volt-dashboard-pro.zip
$ cd django-volt-dashboard-proUnix , MacOS設置透過
VENV安裝模組
$ virtualenv env
$ source env/bin/activate
$ pip3 install -r requirements.txt設定資料庫
$ python manage.py makemigrations
$ python manage.py migrate啟動應用程式
$ python manage.py runserver此時,應用程式運行在http://127.0.0.1:8000/ 。
Windows設定透過
VENV安裝模組(Windows)
$ virtualenv env
$ .envScriptsactivate
$ pip3 install -r requirements.txt
設定資料庫
$ python manage.py makemigrations
$ python manage.py migrate啟動應用程式
$ python manage.py runserver此時,應用程式運行在http://127.0.0.1:8000/ 。
預設情況下,應用程式會重新導向訪客使用者進行身份驗證。要存取私人頁面,請遵循以下設定:
flask run啟動應用程式registration頁面並建立新使用者:http://127.0.0.1:8000/register/sign in頁面並進行身份驗證http://127.0.0.1:8000/login/該項目使用如下所示的簡單直觀的結構進行編碼:
< PROJECT ROOT >
|
| -- core/ # Implements app configuration
| | -- settings.py # Defines Global Settings
| | -- wsgi.py # Start the app in production
| | -- urls.py # Define URLs served by all apps/nodes
|
| -- apps/
| |
| | -- home/ # A simple app that serve HTML files
| | | -- views.py # Serve HTML pages for authenticated users
| | | -- urls.py # Define some super simple routes
| |
| | -- authentication/ # Handles auth routes (login and register)
| | | -- urls.py # Define authentication routes
| | | -- views.py # Handles login and registration
| | | -- forms.py # Define auth forms (login and register)
| |
| | -- static/
| | | -- < css, JS, images > # CSS files, Javascripts files
| |
| | -- templates/ # Templates used to render pages
| | -- includes/ # HTML chunks and components
| | | -- navigation.html # Top menu component
| | | -- sidebar.html # Sidebar component
| | | -- footer.html # App Footer
| | | -- scripts.html # Scripts common to all pages
| |
| | -- layouts/ # Master pages
| | | -- base-fullscreen.html # Used by Authentication pages
| | | -- base.html # Used by common pages
| |
| | -- accounts/ # Authentication pages
| | | -- login.html # Login page
| | | -- register.html # Register page
| |
| | -- home/ # UI Kit Pages
| | -- index.html # Index page
| | -- page-404.html # 404 page
| | -- * .html # All other pages
|
| -- requirements.txt # Development modules - SQLite storage
|
| -- .env # Inject Configuration via Environment
| -- manage.py # Start the app - Django default start script
|
| -- ************************************************************************Django Volt Dashboard PRO - 由AppSeed Generator產生的種子專案。