Django Dashboard เขียนโค้ดด้วยโมดูลพื้นฐาน ฐานข้อมูล ORM และสคริปต์การปรับใช้ที่ด้านบนของ Volt Dashboard PRO (เวอร์ชันพรีเมียม) ซึ่งเป็นการออกแบบแดชบอร์ด Bootstrap ที่ทันสมัย 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 runregistration และสร้างผู้ใช้ใหม่: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