mirror of
https://github.com/lemeow125/Notes.git
synced 2024-11-17 04:09:26 +08:00
vault backup: 2024-11-02 19:04:40
Affected files: docs/Guides/Django REST Framework/1 - Setup.md docs/Guides/Django REST Framework/2 - Initialize your First Project.md docs/Guides/Django REST Framework/3 - Project Structure.md docs/Guides/Django REST Framework/4 - REST Framework Setup.md docs/Guides/Django REST Framework/5 - User Setup and Migrations.md docs/Guides/Django REST Framework/6 - Django Admin.md docs/Guides/Django REST Framework/Django REST Framework.md
This commit is contained in:
parent
848c9cdd58
commit
b058b2d155
7 changed files with 18 additions and 6 deletions
|
@ -58,3 +58,5 @@ This guide does not cover the proper usage of Git and so you may need to look up
|
||||||
You can proceed with the typical installation using defaults (no need to change anything), just click Next/Install.
|
You can proceed with the typical installation using defaults (no need to change anything), just click Next/Install.
|
||||||
|
|
||||||
With that out of the way, you can proceed to setting up your Django REST Framework project.
|
With that out of the way, you can proceed to setting up your Django REST Framework project.
|
||||||
|
|
||||||
|
Up Next: [2 - Initialize your First Project](2%20-%20Initialize%20your%20First%20Project.md)
|
|
@ -89,4 +89,6 @@ Once that's done, run the command `python manage.py runserver 0.0.0.0:8000` to s
|
||||||
|
|
||||||
Your Django project will now be visible on the URL **[https://localhost:8000](https://localhost:8000)**
|
Your Django project will now be visible on the URL **[https://localhost:8000](https://localhost:8000)**
|
||||||
|
|
||||||
![377f5134b0525b830116a64d7699368f_MD5](_resources/2%20-%20Initialize%20your%20First%20Project/377f5134b0525b830116a64d7699368f_MD5.jpg)
|
![377f5134b0525b830116a64d7699368f_MD5](_resources/2%20-%20Initialize%20your%20First%20Project/377f5134b0525b830116a64d7699368f_MD5.jpg)
|
||||||
|
|
||||||
|
Up Next: [3 - Project Structure](3%20-%20Project%20Structure.md)
|
|
@ -78,4 +78,6 @@ Add **rest_framework** to **INSTALLED_APPS**
|
||||||
|
|
||||||
![c327ae10edcfd245d0ad4cfe787bf9ae_MD5](_resources/3%20-%20Project%20Structure/c327ae10edcfd245d0ad4cfe787bf9ae_MD5.jpg)
|
![c327ae10edcfd245d0ad4cfe787bf9ae_MD5](_resources/3%20-%20Project%20Structure/c327ae10edcfd245d0ad4cfe787bf9ae_MD5.jpg)
|
||||||
|
|
||||||
The next section will then tackle building a REST API with DRF
|
The next section will then tackle building a REST API with DRF.
|
||||||
|
|
||||||
|
Up Next: [4 - REST Framework Setup](4%20-%20REST%20Framework%20Setup.md)
|
|
@ -52,4 +52,6 @@ Your setup should then look like this
|
||||||
|
|
||||||
There is no need to include the **api** app in your **INSTALLED\_APPS (config/settings.py)**
|
There is no need to include the **api** app in your **INSTALLED\_APPS (config/settings.py)**
|
||||||
|
|
||||||
The next section will handle users and authentication
|
The next section will handle users and authentication
|
||||||
|
|
||||||
|
Up Next: [5 - User Setup and Migrations](5%20-%20User%20Setup%20and%20Migrations.md)
|
|
@ -229,4 +229,6 @@ With that out of the way, running your Django project (`python manage.py runserv
|
||||||
|
|
||||||
It's always important to apply your migrations before running your app, otherwise you might run into issues.
|
It's always important to apply your migrations before running your app, otherwise you might run into issues.
|
||||||
|
|
||||||
In the next section, you will be creating your first (superuser) account to access the Django admin panel.
|
In the next section, you will be creating your first (superuser) account to access the Django admin panel.
|
||||||
|
|
||||||
|
Up Next: [6 - Django Admin](6%20-%20Django%20Admin.md)
|
|
@ -22,4 +22,4 @@ Be sure to enter a secure password! Django has password validators built-in and
|
||||||
|
|
||||||
![image.png](_resources/6%20-%20Django%20Admin/de9dd7f7b5589adcd14eb7a5358eeaa0_MD5.jpg)
|
![image.png](_resources/6%20-%20Django%20Admin/de9dd7f7b5589adcd14eb7a5358eeaa0_MD5.jpg)
|
||||||
|
|
||||||
Up next: [Writing API Endpoints](7%20-%20Writing%20API%20Endpoints.md)
|
Up next: [7 - Writing API Endpoints](7%20-%20Writing%20API%20Endpoints.md)
|
||||||
|
|
|
@ -9,4 +9,6 @@ Django can be used as-is to develop full stack web apps which include your front
|
||||||
|
|
||||||
You will be using Django alongside Django REST Framework to instead build a backend API, which will only serve data from your database, and not serve as a frontend framework. This guide will focus on data, so no fancy frontend design stuff!
|
You will be using Django alongside Django REST Framework to instead build a backend API, which will only serve data from your database, and not serve as a frontend framework. This guide will focus on data, so no fancy frontend design stuff!
|
||||||
|
|
||||||
This guide has concepts that are similar to the official guide for Django linked [here](https://docs.djangoproject.com/en/5.1/intro/tutorial01/). Check it out as well!
|
This guide has concepts that are similar to the official guide for Django linked [here](https://docs.djangoproject.com/en/5.1/intro/tutorial01/). Check it out as well!
|
||||||
|
|
||||||
|
Up Next: [1 - Setup](1%20-%20Setup.md)
|
Loading…
Reference in a new issue