You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -3,47 +3,234 @@ title: Django Material PRO - Premium Starter
3
3
sidebar_label: Django Material PRO
4
4
---
5
5
6
-
# Django Material PRO
6
+
# [Django Material PRO](https://appseed.us/product/material-dashboard-pro/django/)
7
7
8
-
<SubHeading> Admin dashboard generated by AppSeed in Django on top of Material Dashboard design (PRO version).</SubHeading>
8
+
<SubHeading>Premium Django Starter coded on top of Material Bootstrap 4 design (Premium Version).</SubHeading>
9
9
10
-
**Material Dashboard PRO** is a Premium Material Bootstrap 4 Admin with a fresh, new design inspired by Google's Material Design. It is based on the popular Bootstrap 4 framework and comes packed with multiple third-party plugins. All components are built to fit perfectly with each other while aligning with the material concepts. 
10
+
Premium **Django Dashboard** generated by `AppSeed` on top of a modern design.
11
+
**[Material Dashboard](https://appseed.us/product/material-dashboard-pro/django/)** is a premium `Bootstrap 4` Admin Dashboard featuring over 100 components, and 11 example pages.
To use the starter, [Python3](https://www.python.org) should be installed properly in the workstation.
41
+
If you are not sure if Python is installed, please open a terminal and type `python --version`. Here is the full list with dependencies and tools required to build the app:
42
+
43
+
-[Python3](https://www.python.org) - the programming language used to code the app
44
+
-[GIT](https://git-scm.com) - used to clone the source code from the Github repository
45
+
- Basic development tools (g++ compiler, python development libraries ..etc) used by Python to compile the app dependencies in your environment.
46
+
- (Optional) `Docker` - a popular virtualization software
This is required because the project has a private REPO dependency: `github.com/app-generator/priv-django-admin-material-pro`
64
+
65
+
```bash
66
+
$ export GITHUB_TOKEN='TOKEN_HERE'# for Linux, Mac
67
+
$ set GITHUB_TOKEN='TOKEN_HERE'# Windows CMD
68
+
$ $env:GITHUB_TOKEN = 'TOKEN_HERE'# Windows powerShell
69
+
```
70
+
71
+
> 👉 Install modules via `VENV`.
72
+
73
+
74
+
```bash
75
+
$ virtualenv env
76
+
$ source env/bin/activate
77
+
$ pip install -r requirements.txt
78
+
```
79
+
80
+
> 👉 Edit the `.env` using the template `.env.sample`.
81
+
82
+
```env
21
83
22
-
> Links 
84
+
# True for development, False for production
85
+
DEBUG=True
23
86
24
-
-[Material PRO Django](https://appseed.us/admin-dashboards/django-dashboard-material-pro) - product page
25
-
-[Material PRO Django](https://github.com/app-generator/django-dashboard-material-pro) - public repository used for bug tracking
26
-
-[Material PRO Django](https://django-material-dashboard-pro.appseed-srv1.com/) - LIVE Demo
27
-
-[Support](https://appseed.us/support): via **Github** (issues tracker) and [Discord](https://discord.gg/fZC6hup) - 24/7 LIVE Assistance. 
87
+
```
28
88
29
-
### What is Django
89
+
> 👉 Set Up Database
30
90
31
-
Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle of Web development, so you can focus on writing your app without needing to reinvent the wheel. It’s free and open source.
91
+
```bash
92
+
$ python manage.py makemigrations
93
+
$ python manage.py migrate
94
+
```
32
95
33
-
> Read more about [Django Framework](../../content/what-is/django.mdx)
96
+
> 👉 Create the Superuser
34
97
35
-
### How to use the App
98
+
```bash
99
+
$ python manage.py createsuperuser
100
+
```
36
101
37
-
-[Set up the environment](../../boilerplate-code/starters/django-dashboard.mdx#environment-1) - prepare your workstation for **Django**
38
-
-[Compile the sources](../../boilerplate-code/starters/django-dashboard.mdx#build-the-app-1) - start this **Django** app in the local environment
39
-
-[App Codebase](../../boilerplate-code/starters/django-dashboard.mdx#app-codebase) - how the project files are organized
40
-
-[App Configuration](../../boilerplate-code/starters/django-dashboard.mdx#app-configuration) - how to configure this **Django** application
Material Dashboard PRO makes use of light, surface, and movement. The general layout resembles sheets of paper following multiple layers so that the depth and order is obvious. The product is a powerful dashboard that can easily help you build admin panels, CRMs or content management systems.
108
+
At this point, the app runs at `http://127.0.0.1:8000/`.
109
+
110
+
<br />
111
+
112
+
## Manage App `Users`
113
+
114
+
By default, the starter is not provided with users. To access the private pages and the admin section (reserved for `superusers`) follow up the next sections.
115
+
116
+
### 👉 Create `Superusers`
117
+
118
+
To access the `admin` section, Django requires `superuser` privilegies. Let's create a new `superuser` and access the `admin` section of the project:
119
+
120
+
```bash
121
+
$ python manage.py createsuperuser
122
+
```
123
+
124
+
Once the `superuser` is successfully created, we can access the `admin` section:
125
+
126
+
`http://localhost:8000/admin/`
127
+
128
+
129
+
<br />
130
+
131
+
## Codebase structure
132
+
133
+
The project is coded using a simple and intuitive structure presented below:
When a template file is loaded in the controller, `Django` scans all template directories starting from the ones defined by the user, and returns the first match or an error in case the template is not found.
165
+
The theme used to style this starter provides the following files:
When the project requires customization, we need to copy the original file that needs an update (from the virtual environment) and place it in the template folder using the same path.
198
+
199
+
> For instance, if we want to **customize the footer.html** these are the steps:
200
+
201
+
- ✅ `Step 1`: create the `templates` DIRECTORY inside the `home` app
202
+
- ✅ `Step 2`: configure the project to use this new template directory
203
+
-`core/settings.py` TEMPLATES section
204
+
- ✅ `Step 3`: copy the `footer.html` from the original location (inside your ENV) and save it to the `home/templates` DIR
0 commit comments