Skip to content

Commit ed5f54c

Browse files
committed
Doc: Update the images structure and their links
1 parent b114128 commit ed5f54c

File tree

9 files changed

+8
-8
lines changed

9 files changed

+8
-8
lines changed

02_django/01_getting_started.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ My OS currently has Python3.8.10. In your terminal, I will be on VS Code's termi
4646
$ mkdir demo_project
4747
```
4848

49-
![Create Project](/02_django/images/getting_started/django_project.png)
49+
![Create Project](/02_django/images/01_getting_started/django_project.png)
5050

5151
Navigate into the new folder:
5252

5353
```python
5454
$ cd demo_project
5555
```
56-
![Change Directory](/02_django/images/getting_started/cd_demo_folder.png)
56+
![Change Directory](/02_django/images/01_getting_started/cd_demo_folder.png)
5757

5858
It is recommended to install Django in a virtual environment. Virtual environments are used to isolate the needs of one application from another, or from cluttering the OS. You can run the command below in your terminal:
5959

@@ -81,7 +81,7 @@ Now, we are ready to install Django. Let us run this command in our active virtu
8181
(venv)$ pip3 install django
8282
```
8383

84-
![Install django](/02_django/images/getting_started/install_django2.png)
84+
![Install django](/02_django/images/01_getting_started/install_django2.png)
8585

8686
Verify that Django has been install by running this command in your terminal:
8787

@@ -118,7 +118,7 @@ Django has some commands we can use to create and manage our project. One of the
118118
(venv)$ django-admin
119119
```
120120

121-
![Django admin command](/02_django/images/getting_started/djajngo_admin_command.png)
121+
![Django admin command](/02_django/images/01_getting_started/djajngo_admin_command.png)
122122

123123
You can see that when we run the `django-admin` command we get a list of sub-commands. The one we are most interested in at the moment is the `startproject` command. It creates a complete project for us, with the proper structure and all the files we will need to get started. Let us use it below:
124124

@@ -169,11 +169,11 @@ We can visualize the project' structure using VS Code's file explorer. First, le
169169
(venv)blog_app $ code .
170170
```
171171

172-
![Open vs code](/02_django/images/getting_started/open_vs_code.png)
172+
![Open vs code](/02_django/images/01_getting_started/open_vs_code.png)
173173

174174
You will see the full project structure such as the one below.
175175

176-
![Project structure](/02_django/images/getting_started/project_structure.png)
176+
![Project structure](/02_django/images/01_getting_started/project_structure.png)
177177

178178

179179
## Overview of Django Project Files
@@ -213,10 +213,10 @@ To start the Django server, run:
213213
(venv)$ python3 manage.py runserver
214214
```
215215

216-
![Run server](/02_django/images/getting_started/run_server.png)
216+
![Run server](/02_django/images/01_getting_started/run_server.png)
217217

218218
We do not have to worry about the warnings in the terminal at this point, because we have not finished setting up the application. What we are interested in at the moment is the localhost URL. It is currently running on port 8000. Paste the link in a new tab on your favourite browser to see the application.
219219

220-
![Django Live](/02_django/images/getting_started/django_live.gif)
220+
![Django Live](/02_django/images/01_getting_started/django_live.gif)
221221

222222
To stop the server, you can press "Ctrl + C" in the terminal running the application.

0 commit comments

Comments
 (0)