The Django Developer’s Guide to Vite
The easy way to add JavaScript to your Django projects.
The easy way to add JavaScript to your Django projects.
You don’t have to build a separate app to use Vue with Django
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
This is a beginner friendly Django tutorial to create a To Do list app. This will teach you how to start a Django project from
New to Django? Get your project up and running.
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
Welcome to Part 3 of my tutorial series to build a To Do list app. In the previous tutorial we added a model. This means
Welcome to Part 4 of my tutorial series on building a To Do List app with Django. In the previous tutorial, we added views to
Welcome to Part 5 of my tutorial series on creating a To Do list app with Django. In Parts 1 to 4, we focused on
In the previous tutorials, we have been building a To Do list app. We created a page that lists all the tasks and added a
Welcome to Part 7 of my tutorial series on how to create a To Do List app with Django. The tutorial series so far has
In this tutorial, we are going to implement a basic filter. This will work by specifying how we want to filter our tasks in the
No one wants to read unformatted text. Use Summernote to add formatting and images to your posts.
As a Django developer, you might want to prevent users from uploading large images. If the uploaded images are wider than the container they will
A common feature of Django projects is the ability to upload images. I’m going to show you an example where we add feature images to
Django templates store the HTML for your projects. Django uses its own templating language to allow you to add data from the back-end into your
This post gives an example of how to add foreign keys to your project. Using blog posts and categories as our example, we will add a foreign key and allow users to view posts by category.
In this tutorial, I am going to show you how to add tags to basic Django blog using a ManyToManyField. Blogs are a common project
Slug fields rely on user the type the slug themselves. Learn how to populate the slug automatically from a title.
User registration with Django REST Framework (DRF) can be challenging because you don’t have the advantage of Django’s built in user model. I am going
Learn how to use Django’s authentication system to log users in with an email instead of a username.
Adding login and logout to your Django application is very quick and doesn’t require lots of custom code. However, it relies a lot on features
This tutorial is going to cover how to create users in Django in the most basic way possible. This tutorial covers: The need to handle
A tutorial on creating QuerySets with Django ORM and filtering the data. Includes how to convert QuerySets into lists.
Learn how to use Django ORM’s annotate method to make complex queries. Explained with 7 examples from Formula 1.
A NoReverseMatch error is a common Django error and one that can often be fixed with just one line of code. The cause of the
You don’t have to rely on pip freeze to manage your project requirements.
Django applications use a SQLite by default. In VScode, the database is stored in a file called db.sqlite3. The great thing about this is you
Black is an auto-formatter for Python projects. It can be configured to automatically format your code when you save your files. This means you will
kwargs is short for “keyword arguments”, which are optional arguments of a Python function. In Django, you may come across functions which contain *args and/or
Non-nullable foreign keys require the ID of the default object. Learn how to create a custom migration to create a default.
Learning how to CRUD data is a core skill for any web developer. CRUD stands for Create, Read, Update, Delete. In this tutorial, I am
Supercharge your model classes by adding methods.
Understanding how migrations work in Django is key to preventing hard-to-fix errors.
Learn how to test Django models.