How to Create Rows in the Database with Django ORM
Django ORM (Object Relational Mapper) allows your application to modify your database with Python. This means you won’t have to write any SQL to manage
Django ORM (Object Relational Mapper) allows your application to modify your database with Python. This means you won’t have to write any SQL to manage
Learn how to use Django’s authentication system to log users in with an email instead of a username.
Learn how to use Django ORM’s annotate method to make complex queries. Explained with 7 examples from Formula 1.
Welcome to Part 2 of my To-Do list tutorial series. In Part 1, we set up a Django project with a database and created a
Supercharge your model classes by adding methods.
Understanding how migrations work in Django is key to preventing hard-to-fix errors.
Slug fields rely on user the type the slug themselves. Learn how to populate the slug automatically from a title.
Learn how to test Django models.
Foreign Keys are a type of field used to create links between tables of a relational database. Learn how to use them in your Django projects.
If you want to create a migration but want to assign a custom value to each of the existing rows, you can add custom Python to your migration.