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
@@ -26,16 +26,16 @@ description: Premium dashboard styled with Bulma CSS crafted by CssNinja agency.
26
26
27
27
**Modular Code** - Dashkit's code is modular and lets you easily add and remove elements, to match your business specifications.
28
28
29
-
**Solid Layouts** -Multiple and different layouts are available to kickstart your app, like Chat, CRM and analytics products.  
29
+
**Solid Layouts** -Multiple and different layouts are available to kickstart your app, like Chat, CRM and analytics products.
30
30
31
31
## How to compile DashKit
32
32
33
-
Being a commercial product to get access to the source code please access the official page and purchase a license. Once you have the source code downloaded a [minimal programming kit](../tutorials/minimal-programming-kit.mdx) should be properly installed and accessible in the terminal.  
33
+
Being a commercial product to get access to the source code please access the official page and purchase a license. Once you have the source code downloaded a [minimal programming kit](../tutorials/minimal-programming-kit.mdx) should be properly installed and accessible in the terminal.
34
34
35
35
- A modern editor - [VSCode](https://code.visualstudio.com/)
36
36
-[Nodejs](https://nodejs.org/en/) - used in [Javascript](https://developer.mozilla.org/en-US/docs/Web/JavaScript)-based products and tools
37
37
38
-
Once all the tools are installed we can start compiling the code. 
38
+
Once all the tools are installed we can start compiling the code.
39
39
40
40
> **Step #1** - Change the directory inside the sources
<SubHeading>How to setup a Django project to run in Docker</SubHeading>
9
9
10
-
This page explains how to Dockerize a Django application with ease. For newcomers, Django is a leading web framework crafted in Python and Docker is a virtualization software used to isolate the execution of a service or product using virtual containers. 
10
+
This page explains how to Dockerize a Django application with ease. For newcomers, Django is a leading web framework crafted in Python and Docker is a virtualization software used to isolate the execution of a service or product using virtual containers.
Once this is done, we can build the image and run it. 
49
+
Once this is done, we can build the image and run it.
50
50
51
51
```bash
52
52
$ docker build -t django_app .
@@ -57,13 +57,13 @@ You can now access your app on localhost:5000.
57
57
58
58
### Adding Docker Compose
59
59
60
-
If you want to create multiple images and run them using the precedent Docker configuration, you'll have to create multiple `Dockerfile`. 
60
+
If you want to create multiple images and run them using the precedent Docker configuration, you'll have to create multiple `Dockerfile`.
61
61
62
-
`Docker Compose` saves from this by allowing you to use a `YAML` file to operate multi-container applications at once and run it just with one command. 
62
+
`Docker Compose` saves from this by allowing you to use a `YAML` file to operate multi-container applications at once and run it just with one command.
63
63
64
64
Follow the official [documentation](https://docs.docker.com/compose/install/) to install `docker-compose` on your machine.
65
65
66
-
Once it's done, create a `docker-compose.yml` file at the root of your project. Make sure to have an `.env` file at the root of your project. 
66
+
Once it's done, create a `docker-compose.yml` file at the root of your project. Make sure to have an `.env` file at the root of your project.
67
67
68
68
```yaml
69
69
version: "3.8"
@@ -108,11 +108,11 @@ And your application will be running on localhost:5000.
Copy file name to clipboardExpand all lines: docs/content/how-to/django-use-mysql.mdx
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ sidebar_label: Django MySql Database
11
11
12
12
### Django Database System
13
13
14
-
Django provides a generic way to access multiple database backends using a generic interface. In theory, Django empowers us to switch between DB Engines without updating the SQL code. The default SQLite database usually covers all requirements for small or demo projects but for production use, a more powerful database engine like **MySql** or **PostgreSQL** is recommended. 
14
+
Django provides a generic way to access multiple database backends using a generic interface. In theory, Django empowers us to switch between DB Engines without updating the SQL code. The default SQLite database usually covers all requirements for small or demo projects but for production use, a more powerful database engine like **MySql** or **PostgreSQL** is recommended.
15
15
16
16
The database settings are saved in the file referred by `manage.py` file. For all Django starters, this file is saved inside the `core` directory:
17
17
@@ -26,7 +26,7 @@ The database settings are saved in the file referred by `manage.py` file. For al
26
26
||-- urls.py # Define URLs served by all apps/nodes
27
27
```
28
28
29
-
Let's visualize the contents of the `settings.py` file that configures the database interface. 
29
+
Let's visualize the contents of the `settings.py` file that configures the database interface.
30
30
31
31
```python
32
32
# File: core/settings.py
@@ -40,15 +40,15 @@ DATABASES = {
40
40
...
41
41
```
42
42
43
-
The above snippet is provided by when Django scaffolds the project. We can see that the **SQLite** driver is specified by the `ENGINE` variable. 
43
+
The above snippet is provided by when Django scaffolds the project. We can see that the **SQLite** driver is specified by the `ENGINE` variable.
44
44
45
45
### Update for MySql
46
46
47
47
To use MySql as the backend engine for a Django project, we need to follow a simple setup:
48
48
49
49
- Install the **MySql Server** (we can also use a remote one)
50
50
- Install the **Mysql** Python driver - used by Django to connect and communicate
51
-
- Create the Mysql database and the user 
51
+
- Create the Mysql database and the user
52
52
- Update settings Django
53
53
- Execute the Django migration and create the project tables
54
54
@@ -63,13 +63,13 @@ The installation process is different on different systems but this phase should
63
63
64
64
### Install the Python Driver
65
65
66
-
To successfully access the Mysql Engine, Django needs a driver (aka a connector) to translate the Python queries to pure SQL instructions. 
66
+
To successfully access the Mysql Engine, Django needs a driver (aka a connector) to translate the Python queries to pure SQL instructions.
67
67
68
68
```bash
69
69
$ pip install mysqlclient
70
70
```
71
71
72
-
The above instruction will install the Python MySql driver globally in the system. Another way is to use a `virtual environment` that sandboxes the installation. 
72
+
The above instruction will install the Python MySql driver globally in the system. Another way is to use a `virtual environment` that sandboxes the installation.
73
73
74
74
```bash
75
75
$ # Create and activate the virtual environment
@@ -127,7 +127,7 @@ DATABASES = {
127
127
128
128
### Start the project
129
129
130
-
The next step in our simple tutorial is to run the Django migration that will create all necessary tables. 
130
+
The next step in our simple tutorial is to run the Django migration that will create all necessary tables.
At this point, Django should be successfully connected to the Mysql Server and we can check the database and list the newly created tables during the database migration. 
145
+
At this point, Django should be successfully connected to the Mysql Server and we can check the database and list the newly created tables during the database migration.
146
146
147
147

Copy file name to clipboardExpand all lines: docs/content/how-to/setup-windows-for-development.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ This guide is written for `Windows 10` version but can be used as a starting poi
22
22
Visual Studio Code is a lightweight but powerful source code editor that runs on your desktop and is available for Windows, MacOS and Linux.
23
23
24
24
It comes with built-in support for JavaScript, TypeScript and Node.js and has a rich ecosystem of extensions for other languages (such as C++, C#, Java, Python, PHP, Go)
25
-
and runtimes (such as .NET and Unity). 
25
+
and runtimes (such as .NET and Unity).
26
26
27
27
-[Visual Studio Code](https://code.visualstudio.com/) - the official page
28
28
-[Visual Studio Code](https://code.visualstudio.com/docs) - documentation
@@ -53,7 +53,7 @@ To install Git on Windows you will need to download the installer from the [Git]
53
53
54
54
- Download the installer
55
55
- Execute the installer, using the default options
0 commit comments