Django Bootstrap Tutorial: How To Add Bootstrap to Django.

If you’re a back-end web developer who wants to make your Django website look good, you do not have to write HTML, CSS, or Javascript from scratch. You can simply use premade Bootstrap styles to quickly make your website look more appealing. This post will teach you how to add Bootstrap to Django so you […]

Python Comment Block: How to Block Comment In Python.

In JavaScript, we use the forward slash and the asterisk (/*, */) to comment out a block of code. In C#, Java, Golang, Rust, etc., commenting out a block of code can be done using the same combination of symbols as in JS. In other programming languages, a block of code can be commented out […]

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 […]

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 […]

Scroll to top