How to fix typeerror: __init__() missing 1 required positional argument: β€˜on_delete’ in Django

I mentioned an error called: typeerror: __init__() missing 1 required positional argument: β€˜on_delete’ in my post about the significance of the Django on_delete argument and its 7 options. But that was just mentioned, I did not really explain why the on_delete error happened, when does it happen, and most importantly, how to fix it when […]

Django on_delete: The Significance of the on_delete Argument and Its 7 Options to Django Models.

You may have used the Django on_delete argument in almost every Django project you’ve built. Most of us certainly have, but most of us probably have no idea what this β€˜django on_delete’ argument actually does. This is because whenever we use a Foreignkey in our Django models, it is also mandatory that we add the […]

Django blank vs null: What’s the difference between blank=True and null =True in Django models?

This post will explain the Django blank vs null concept. The difference between blank=True and null=True is a confusing concept in Django models. There is quite a big confusion about the difference between the blank = True and null = True values when dealing with Django models. This confusion is not popular only among beginners […]

Django MySQL: How to Connect to MySQL Database from Django (Best Methods) πŸ”—.

Django, the Python web development framework that we all love, comes with many built-in features that are beneficial to the developer. At some point during the development of a Django project, you create a superuser whose signup details (username, email, and password) you can use to login into a beautiful, feature-rich admin panel where your […]

How to Install and Set up FastAPI Project on Your Computer: pip install fastapi.

This step-by-step guide will show you how to install FastAPI and set up a FastAPI project on your computer. We will start with a few requirements needed before one can install FastAPI and create a web project with it, then we will go step by step into installing FastAPI along with other dependencies. Last but […]

Best Django YouTube channels (Subscribe Today!).

Youtube is the best place to learn anything from the Internet (online) because it is free and has a large following. If you’re looking to find the best Django youtube channels, you’ve already been using Youtube for quite some while and you know of all the amazing features that it has. Just to mention some […]

How To Create app Inside Django Project ~ Django startapp.

The command django-admin startproject project_name creates a Django project called project_name in the folder you ran the command in. The project folder structure looks like the below: Django uses the name of your project (the one you entered in the command) as the name of your project configuration folder as well. A much more recommended […]

How to Upload Django Project to Github.

Git is a version control system that lets you go back to any version of your code, even if you delete something important by accident. It also lets you keep track of all your work through commits and work with other developers. In this post, I’ll show you how to upload a Django project to […]

How To Show Image In Django Admin.

ImageField is the default image uploading field in Django. By default, when you upload an image from Django’s admin panel, it will display the name/URL of the image rather than the picture itself, this post will show you how to show an Image in Django admin after uploading it. In this post, I use an […]

How to run Django Development server: Django runserver

When developing a web project with Django, it is always a good idea to check if everything is going well each time you make changes to your code. To do that in the backend, we normally use Django tests; but to do that visually, we just have to look at the output (in the eyes […]

Scroll to top