This Python Django Tutorial is about using Django Models to store user's data in databases with Django ORM. This video also is about Django database migrations.
Database migrations is a mechanism that allows us to roll back changes that we made to a database scheme. Database migrations in Django is something like Git for databases.
Our first Django Models is a Post model. A master of our Django blog will want to create a new blog post. And so we have to store the Blog's post data in a database.
To do it we have describe a Django model - a Post, that will represent our posts in a database. We have to describe fields of Django models that will become records in databases.
Django ORM allows us to describe a database scheme by creating Python classes.
After we'll create Django models we have to make migrations for these changes. Django migrations files - are Python files, that contain instructions what changes should be committed to a database.
We can create Django migration files with the command:
python manage.py makemigrations
After that we have to apply our migrations to a database:
python manage.py migrate
Follow me @:
Telegram: https://t.me/red_eyed_coder_club
Twitter: / codereyed
Facebook: https://fb.me/redeyedcoderclub
============ SOURCE CODE ================
📎️ The SOURCE CODE is available via Patreon:
/ django-3-blog-34240101
======================================
✴️✴️✴️ Web Scraping course ✴️✴️✴️
is available via Patreon here:
/ red_eyed_coder_club
or its landing:
https://red-eyed-coder-club.github.io...
➥ Please ➥ Like ➥ Comment ➥ Subscribe
▶️ This Django blog tutorial. List of videos:
#0. Demo
• Python Django Tutorial #0: Demo of Django ...
#1. Django Project Structure
• Python Django Tutorial #1: Django structur...
#2. Routing and Handling requests
• Python Django Tutorial #2: Django routing,...
#3. Template Inheritance
• Python Django Tutorial #3: Django Template...
#4. Django Models, Django ORM, Django database migrations (posts)
• Python Django Tutorial #4: Django Models, ...
#5. Tag Model and ManyToMany Relationships
• Python Django Tutorial #5: Django Many To ...
#6. Class Based Views and using Mixins
• Python Django Tutorial #6: Django Class Ba...
#7. Django Forms. Creating Tags.
• Python Django Tutorial #8: Django ModelFor...
#8. Forms. Creating Posts
• Python Django Tutorial #8: Django ModelFor...
#9. Updating via Forms
• Python Django Tutorial #9: Django Update F...
#10. Deleting via Forms
• Python Django Tutorial #10: Django Delete ...
#11. Using custom CSS
• Python Django Tutorial #11: Django static ...
#12. Restricting access
• Python Django Tutorial #12: Django permiss...
#13. Django Pagination
• Python Django Tutorial #13: Django Paginat...
#14. Django Basic Search
• Python Django Tutorial #14: Django Basic S...
✴️✴️✴️ PLAYLISTS ✴️✴️✴️
🔹Django Tutorial: Blog Engine
• Python Django Tutorial #0: Demo of Django ...
🔹Kivy Tutorial: Coppa Project
• Python Kivy tutorial #0: Demo Project | Ki...
🔹Telegram Bot with Python (CoinMarketCap)
• Python Telegram Bot Tutorial: Demo and Int...
🔹Python Web Scraping
• Python Ebay Scraping Tutorial: Web scrapin...
➥➥➥ SUBSCRIBE FOR MORE VIDEOS ➥➥➥
Red Eyed Coder Club is the best place to learn Python programming and Django:
Subscribe ⇢ / @redeyedcoderclub
Python Django Tutorial #4: Django Models, Django ORM, database migrations | Django Crash Course:
• Python Django Tutorial #4: Django Models, ...
#django #djangomodels #redeyedcoderclub
Auf dieser Seite können Sie das Online-Video Python Django Tutorial #4: Django Models, Django ORM, database migrations | Django blog project mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Red Eyed Coder Club 22 Februar 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,888 Mal angesehen und es wurde von 66 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!