How To Do Warmup Practice For Django Part 1: 15 Exercises That Will Make You Pro Django Developer
ฝัง
- เผยแพร่เมื่อ 3 ก.ค. 2024
- Video covers the following steps that is required for mastering the django framework for projects and app creations.
- Create environment
* create virtual environment using python -m venv djangopjts
* activate it using djangopjts\Scripts\activate
* do pip install httpie django
- Create Django Project, and Django app. Keep the same name every time you run this warmup
* project: recap
* app: reapp
* Update the settings file under the project
* Create the urls.py file in app
* Update the urls.py file in project along with the path
* Start working with Views.py using the HttpResponse to begin with.
(No rendering to the front-end)
- Complete CRED operation API calls using django, and steadily extend the app to
include further ideas related to LLMs.
- simple get, no query params
* http GET :8000/reapp/
* http GET :8000/reapp/get_name/ name==nice
- simple get with idx
* http GET :8000/reapp/get_idx/1
- get with single and multi-query params
* http GET :8000/reapp/mqp/ name==nice age==2
- simple post with idx
* http POST :8000/reapp/post_idx/1
Chapter Navigation:
0:00 Intro
0:40 Why Warmup
1:50 What we will discuss
2:50 Warmup Tasks
4:30 Keeping Tables Same
5:30 Projects Application & Tasks
7:00 How is this different
8:15 Creating Environment
12:00 Why multiple terminals?
14:00 Creating Django Project & App
17:20 Adding folders to workspace
18:30 Modifying Settings
20:30 Editing & Creating urls.py file
24:00 Challenges faced & folder layout
26:30 Creating url_patterns in URLs.py in App
28:10 Creating First View and Required Imports
32:15 Adding Hello function to URL path
33:50 Using HTTPie to send Get Request
37:50 Views Function for Get with Single Query Params
41:05 Requesting Get with Single Query Params
43:00 View Function for Get with URL Slug
45:20 Requesting Get with URL Slug
48:00 View Function with Multi Query Params
50:50 Get Request with Multi Query Params
54:10 Working on Post Requests
56:00 Import CSRF_EXEMPT
59:30 GET Request with Slug on Post Function
1:00:00 POST Request with Slug
1:01:30 Recap & Outro
The data and the code is located at
github.com/insightbuilder/dja...
I believe you will like this video, and subscribe to the channel. Further uploads related to Big Data, Large Language models and Artificial Intelligence will be shared to your TH-cam Dashboard Directly.
The supporting playlists are
The bard Project
• Google Bard LLM : New ...
Practical Projects Playlist
• The Future is Here: La...
Huggingface Playlist
• Mastering NLP with Hug...
Python Data Engineering Playlist
• Learn to Data Engineer...
Python Ecosystem of Libraries
• Mastering the Python E...
ChatGPT and AI Playlist
• Learn about AI Languag...
AWS and Python AWS Wrangler
• Building a Powerful Da...
Exploring the Realm of Generative AI: Hardware and Software Discussions
• Exploring the Realm of...
PS: Got a question or have a feedback on my content. Get in touch
By leaving a Comment in the video
topmate.io/insightbuilder?SocialProfile
@mail insighthacker21@gmail.com
@twitter Handle is @KQrios
@medium / about
@github github.com/Kamalabot - วิทยาศาสตร์และเทคโนโลยี