How To Access The Django Admin.

The Django administration site is a wonderful feature unique to the web development framework. It’s one of the Django features that makes it stand out against other web development frameworks like Laravel. The admin allows you to interact with the models you have registered in the file. Django professionals can go away with using […]

How to Generate a Secret Key in Django

In this post, you’re going to learn about the Django secret key, what it is used for, and how to generate it for your Django project. What is a Django secret key? To perform cryptographic signing, or to create hashes and tokens for sensitive information like csrf tokens, password reset tokens, etc, Django makes use […]

How to use Environment Variables in Django

In a Django project, there is information that needs to be kept secret like a Secret key, a Database username and password, and API keys. This is because their exposure to foreign parties can put your project at risk of security attacks. In Django projects that are not meant for deployment, this may not be […]

How to use Django offline?

Sometimes, if you are a Django developer, you may want to create a Django project without an internet connection. This post is going to answer the question can Django be used offline and if it does, how can one do it. Can Django be used offline? Yes. Django can be used offline. Meaning, you can […]

How to Make a Multiplication Table in Python

A multiplication table for a number displays all the number’s multiples and their corresponding factors; usually in the ascending order of their greatness. We normally do this manually by writing down a set of ordered numbers and multiplying each of them with the number concerned then writing down the product we get next to them. […]

How To Add favicon to Django project

A favicon is that small icon that appears at the top of a tab in a browser. A favicon can make your site look professional almost instantly. In this post, I’ll show you how to add a favicon to your Django project to make it look a bit more professional. Below is an image of […]

Django Collectstatic: Serve Django Static Files for Local & Production Development

This post is going to cover how to configure static files for local and production development for your Django project. We are going to look at what static files are, what the collectstatic command is and how it works, and finally how to serve the static files and load them in your templates. What are […]

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

Scroll to top