django πŸ‘¨πŸΌβ€πŸ’»

Django Imagefield: How to Upload Images in Django

Uploading images with Django is straightforward but contains a lot of steps. This post is going to show you how to use ImageField to upload images in Django. This post is divided into 4 sections: This post assumes that you have already created a Django project and you’re ready to add image uploading functionality to […]

3 Ways to Reset Django Admin/Superuser Password

If you have forgotten the password for your Django project’s Admin or Superuser, you do not have to create another superuser. As long as you remember the Superuser’s username or you are still logged in to the admin panel, then you can easily reset the Django admin’s password using the methods that I’ll share in […]

2 Ways to Configure your Django Project Templates.

Django is built on an architecture known as MVT– Model View Template. The Template part is equally important as the rest of the other parts because there is no website without a front end. The front end is important because users interact with our Django app through it. One question that most Django beginners often […]

How to include app URLs to project URLs in Django

If you create a Django app using the startapp command, you’ll notice that the app folder created does not include the urls.py file. This does not mean that we have put all the routes of our Django website in the urls.py of our project folder. If we had to do that, our project will be […]

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 Setup: How to Connect Django to MySQL (2 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 […]

Scroll to top