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
Copy file name to clipboardExpand all lines: README.md
+81-163
Original file line number
Diff line number
Diff line change
@@ -4,20 +4,20 @@
4
4
5
5
Open-source **[Django Template](https://www.creative-tim.com/templates/django)** crafted on top of **Soft UI Dashboard**, a modern Bootstrap 5 design. Start your development with a modern Bootstrap 5 Admin template for Django. Soft UI Dashboard is built with over 70 individual components, giving you the freedom of choosing and combining. If you want to code faster, with a smooth workflow, then you should try this template carefully developed with Django, a well-known Python Framework.
$ # Access the web app in browser: http://127.0.0.1:8000/
89
55
```
90
56
91
-
> Note: To use the app, please access the registration page and create a new user. After authentication, the app will unlock the private pages.
92
-
93
-
<br />
94
-
95
-
## Documentation
96
-
The documentation for the **Soft UI Dashboard Django** is hosted at our [website](https://www.creative-tim.com/learning-lab/bootstrap/build-tools-free/soft-ui-dashboard).
97
-
98
57
<br />
99
58
100
-
## Code-base structure
101
-
102
-
The project is coded using a simple and intuitive structure presented bellow:
59
+
> 👉 Install modules via `VENV`
103
60
104
61
```bash
105
-
< PROJECT ROOT >
106
-
|
107
-
|-- core/ # Implements app configuration
108
-
||-- settings.py # Defines Global Settings
109
-
||-- wsgi.py # Start the app in production
110
-
||-- urls.py # Define URLs served by all apps/nodes
111
-
|
112
-
|-- apps/
113
-
||
114
-
||-- home/ # A simple app that serve HTML files
115
-
|||-- views.py # Serve HTML pages for authenticated users
116
-
|||-- urls.py # Define some super simple routes
117
-
||
118
-
||-- authentication/ # Handles auth routes (login and register)
119
-
|||-- urls.py # Define authentication routes
120
-
|||-- views.py # Handles login and registration
121
-
|||-- forms.py # Define auth forms (login and register)
- Django bootstrapper `manage.py` uses `core/settings.py` as the main configuration file
159
-
-`core/settings.py` loads the app magic from `.env` file
160
-
- Redirect the guest users to Login page
161
-
- Unlock the pages served by *app* node for authenticated users
162
-
163
-
<br />
164
-
165
-
## Recompile CSS
166
-
167
-
To recompile SCSS files, follow this setup:
168
-
169
-
<br />
170
-
171
-
**Step #1** - Install tools
172
-
173
-
-[NodeJS](https://nodejs.org/en/) 12.x or higher
174
-
-[Gulp](https://gulpjs.com/) - globally
175
-
-`npm install -g gulp-cli`
176
-
-[Yarn](https://yarnpkg.com/) (optional)
177
-
178
-
<br />
179
-
180
-
**Step #2** - Change the working directory to `assets` folder
69
+
> 👉 Set Up Database
181
70
182
71
```bash
183
-
$ cd apps/static/assets
72
+
$ python manage.py makemigrations
73
+
$ python manage.py migrate
184
74
```
185
75
186
76
<br />
187
77
188
-
**Step #3** - Install modules (this will create a classic `node_modules` directory)
78
+
> 👉 Create the Superuser
189
79
190
80
```bash
191
-
$ npm install
192
-
// OR
193
-
$ yarn
81
+
$ python manage.py createsuperuser
194
82
```
195
83
196
84
<br />
197
85
198
-
**Step #4** - Edit & Recompile SCSS files
86
+
> 👉 Start the app
199
87
200
88
```bash
201
-
$ gulp scss
89
+
$ python manage.py runserver
202
90
```
203
91
204
-
The generated file is saved in `static/assets/css` directory.
205
-
206
-
<br />
207
-
208
-
## Deployment
92
+
At this point, the app runs at `http://127.0.0.1:8000/`.
209
93
210
-
The app is provided with a basic configuration to be executed in [Docker](https://www.docker.com/), [Gunicorn](https://gunicorn.org/), and [Waitress](https://docs.pylonsproject.org/projects/waitress/en/stable/).
94
+
<br />
211
95
212
-
### [Docker](https://www.docker.com/) execution
213
-
---
96
+
## Documentation
214
97
215
-
The application can be easily executed in a docker container. The steps:
98
+
The documentation for the **Soft UI Dashboard Django** is hosted at our [website](https://www.creative-tim.com/learning-lab/bootstrap/build-tools-free/soft-ui-dashboard).
This design is a pixel-perfect [Bootstrap 5](https://www.admin-dashboards.com/bootstrap-5-templates/) Dashboard with a fresh, new design concept. `Soft UI Dashboard PRO` is built with over 300 frontend individual elements, like buttons, inputs, navbars, nav tabs, cards, or alerts, giving you the freedom of choosing and combining.
0 commit comments