Dasbor Django dikodekan dengan modul dasar, basis data, ORM, dan skrip penerapan di atas Volt Dashboard PRO (versi premium), desain dasbor Bootstrap modern. Volt Pro adalah Dashboard Admin Bootstrap 5 premium yang menampilkan lebih dari 800 komponen, 20 halaman contoh, dan 10 plugin yang sepenuhnya dapat disesuaikan yang ditulis dalam Javascript Vanilla.
Product pageLIVE DemoLearn how to use and update the productVersi Dasar
Up-to-date dependencies , versi aktifSession-Based authenticationDockerVersi Diperpanjang
AuthenticationTask ModuleTransactions ModuleUsers ManagementExtended user profileAdmins )
Langkah 1 - Unduh kode dan unzip sumbernya (memerlukan
purchase).
$ # Get the code
$ unzip django-volt-dashboard-pro.zip
$ cd django-volt-dashboard-proLangkah 2 - Mulai APLIKASI di
Docker
$ docker-compose up --build Kunjungi http://localhost:5085 di browser Anda. Aplikasi harus aktif & berjalan.
Unduh kode dan unzip sumbernya (memerlukan
purchase).
$ # Get the code
$ unzip django-volt-dashboard-pro.zip
$ cd django-volt-dashboard-proUnix , MacOSInstal modul melalui
VENV
$ virtualenv env
$ source env/bin/activate
$ pip3 install -r requirements.txtSiapkan Basis Data
$ python manage.py makemigrations
$ python manage.py migrateMulai aplikasi
$ python manage.py runserver Pada titik ini, aplikasi berjalan pada http://127.0.0.1:8000/ .
WindowsInstal modul melalui
VENV(windows)
$ virtualenv env
$ .envScriptsactivate
$ pip3 install -r requirements.txt
Siapkan Basis Data
$ python manage.py makemigrations
$ python manage.py migrateMulai aplikasi
$ python manage.py runserver Pada titik ini, aplikasi berjalan pada http://127.0.0.1:8000/ .
Secara default, aplikasi mengalihkan pengguna tamu untuk mengautentikasi. Untuk mengakses halaman pribadi, ikuti pengaturan ini:
flask runregistration dan buat pengguna baru:http://127.0.0.1:8000/register/sign in dan autentikasihttp://127.0.0.1:8000/login/Proyek ini diberi kode menggunakan struktur sederhana dan intuitif yang disajikan di bawah ini:
< 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 - Proyek benih yang dihasilkan oleh AppSeed Generator .