Тёмный

Python Django Mysql - CRUD Example Part 1 - Create and Insert in Mysql Database 

Techlearners By Neeraj Saxena
Подписаться 15 тыс.
Просмотров 27 тыс.
50% 1

#techlearners
Python Django Mysql
CRUD - Create, Read, Update, Delete
Part 1 Create and Insert
Prerequisite
1. Running DJango project - created
• how to create Python D...
2. Mysql server Installation
• Install latest Mysql -...
Step 1 - Create a database mydjangodb in mysql
Step 2 - Configure database in settings.py file of django project.
Step 3 - Create a template in django app to insert data
Step 4 - Create a view in views.py for above template
Step 5 - Create a url pattern in urls.py of app for above template
Step 6 - Create a Model in models.py file of django project
Step 7 - Run command in the terminal to create migrations
python manage.py makemigrations
Step 8 - Run command in the terminal to migrate databases
Step 9 - In mysql command line view the description of table using desc command
Step 10 - In view.py import model created in models.py
Step 11 - In views.py create insert method to insert data in database
Step 12 - Create url pattern in urls.py of django app for above view
Step 13 - Run server and insert data using template
Step 14 - Login to mysql and query database table to confirm data insertion
Part 2 - Read or Fetch data from database and display on webpage
• Python Django Mysql CR...
TECHLEARNERS BY NEERAJ SAXENA
www.techlearners.co.in

Опубликовано:

 

1 сен 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 43   
@Memeparable
@Memeparable Год назад
This is truly the video I spent 3 hours trying to find.
@sundarsingapore
@sundarsingapore Год назад
Great presentation and easy to catch up the key points. Thanks sir for your effort to teach us online...
@Anilkumar-lk2uw
@Anilkumar-lk2uw Год назад
Thanks lot of actual explanation 😊
@smangasimphiwe5852
@smangasimphiwe5852 Год назад
great video thank you. Please do part 2
@-UPH-KRISHNAM
@-UPH-KRISHNAM Год назад
Thank you sir, found it helpful
@SudireddyPavitrareddy
@SudireddyPavitrareddy 15 дней назад
Thank You
@samrat.02
@samrat.02 Год назад
thanks you sir
@gadesai5759
@gadesai5759 2 месяца назад
Thankyou so much sir .Best Channel for Django . sir please upload video how to check authentication using login form
@TechlearnersbyNeerajSaxena
@TechlearnersbyNeerajSaxena 2 месяца назад
I will try my best
@arunp007
@arunp007 5 месяцев назад
I have a doubt if host this it will work we can see the datas perform update delete add
@allpractical
@allpractical 6 месяцев назад
Perfect video
@TechlearnersbyNeerajSaxena
@TechlearnersbyNeerajSaxena 3 месяца назад
Glad you think so!
@p3ace_am
@p3ace_am Год назад
Very helpful video thank you 👍
@TechlearnersbyNeerajSaxena
@TechlearnersbyNeerajSaxena Год назад
Welcome and thanks for appreciation
@thaneerukarthik1146
@thaneerukarthik1146 8 месяцев назад
can you please share the part 2 video of crud operations in django?
@kumarirojimahapatra6765
@kumarirojimahapatra6765 Год назад
Where is part 2 😢
@giannisk9043
@giannisk9043 2 месяца назад
Thank you sir! Excellent video! But I am facing an issue. Once I insert the user info and click the registration button, I do not redirect in the index page. But the user addition in the user table is done properly.
@VigneshSahoo
@VigneshSahoo 8 месяцев назад
Can you please share that text file's path? It will be really helpful.
@vamsikrishna5744
@vamsikrishna5744 Год назад
Hi sir can you please teach how to login
@_random__vlogs_
@_random__vlogs_ 11 месяцев назад
2nd part???
@YASIR-uo1oo
@YASIR-uo1oo Год назад
When are u going to upload the next videos?
@TechlearnersbyNeerajSaxena
@TechlearnersbyNeerajSaxena Год назад
Very soon
@sandeepsinghnegi9220
@sandeepsinghnegi9220 Год назад
@@TechlearnersbyNeerajSaxena ok, please do the needful
@truptiguj6424
@truptiguj6424 8 месяцев назад
Still waiting.. second part for update and delete?@@TechlearnersbyNeerajSaxena
@khusbukhatun6817
@khusbukhatun6817 5 месяцев назад
Thank you sir. But where is part 2?
@TechlearnersbyNeerajSaxena
@TechlearnersbyNeerajSaxena 3 месяца назад
Check for all parts on my channel playlist
@p3ace_am
@p3ace_am Год назад
Sir, how can a new column be added to MySQL through Django?
@TechlearnersbyNeerajSaxena
@TechlearnersbyNeerajSaxena Год назад
1 Add column in models..py 2 migrate using ahell
@p3ace_am
@p3ace_am Год назад
@@TechlearnersbyNeerajSaxena sir when I try to migrate it shows error
@anuragpant2053
@anuragpant2053 Год назад
Soo helpful, Thanks a lot!! Also, while creating variables and using post method, the following syntax worked for me instead of what you have specified : var_name = request.POST.get('orgName',False) --where false is the default value
@002vaishnavichavan5
@002vaishnavichavan5 Год назад
Where to put this ??
@002vaishnavichavan5
@002vaishnavichavan5 Год назад
My table was not created in SQL...it was showing empty table
@vijithghoshkg9168
@vijithghoshkg9168 3 месяца назад
I hv same issue.smbd please help
@TechlearnersbyNeerajSaxena
@TechlearnersbyNeerajSaxena 3 месяца назад
Check migration and make migration steps....if there are any error in terminal then tell me
@varshagrvarsha5721
@varshagrvarsha5721 2 месяца назад
what is index.html and navbar.html not shown
@002vaishnavichavan5
@002vaishnavichavan5 Год назад
Mysql> show tables; (Then it is showing) Empty set(0.00 sec)
@harshalwadne8519
@harshalwadne8519 9 месяцев назад
write command:-create table table_name
@TechlearnersbyNeerajSaxena
@TechlearnersbyNeerajSaxena 3 месяца назад
Follow each step carefully...use make migration and migrate to create table
@nikhilchadha9527
@nikhilchadha9527 Год назад
Can you share this notepad file , it will helpful in future while making another project
@TechlearnersbyNeerajSaxena
@TechlearnersbyNeerajSaxena 3 месяца назад
You can take a snap from video
@sagarrajkumardesai4275
@sagarrajkumardesai4275 Год назад
Please Share this notepad file
@TechlearnersbyNeerajSaxena
@TechlearnersbyNeerajSaxena 3 месяца назад
You can take snap from video
Далее
БАТЯ И ТЁЩА😂#shorts
00:58
Просмотров 2,4 млн
QVZ PREMYER LIGA
00:18
Просмотров 1,9 млн
Pydantic Tutorial • Solving Python's Biggest Problem
11:07
DJANGO CRUD APPLICATION [LATEST DJANGO ]
1:34:08
Просмотров 24 тыс.
Learn Database Normalization - 1NF, 2NF, 3NF, 4NF, 5NF
28:34
БАТЯ И ТЁЩА😂#shorts
00:58
Просмотров 2,4 млн