Tag: django

How to create custom 404 error page in Django?

In this tutorial I will show you how to create custom 404 error page in Django.

Read Article

Requested setting INSTALLED_APPS, but settings are not configured. You must either define..

I got this following error while running the python outside of the usual manage.py commands.

Read Article

How to restrict access to the page Access only for logged user in Django

In this tutorial I will show you how to restrict access to the page Access only for logged user in …

Read Article

Migration admin.0001_initial is applied before its dependency admin.0001_initial on database default

I got this following error on migrate "Migration admin.0001_initial is applied before its dependency admin.0001_initial on database default"

Read Article

Add or change a related_name argument to the definition for 'auth.User.groups' or 'DriverUser.groups'. -Django ERROR

The following error indicates that the relation with model 'AUTH_USER_MODEL', which is not installed in settings.py

Read Article

Addition of two numbers in django python

In this tutorial I will show you how to add two numbers in django python program.

Read Article

FieldError: Cannot resolve keyword 'id' into field in Django project

I got this following error while running django web application "FieldError Cannot resolve keyword 'id' into field.

Read Article

It is impossible to add a non nullable field without specifying a default. Django error

I got this following error while trying to add a non-nullable field (description) to an existing model (Category) without specifying …

Read Article

ImportError: cannot import name 'url' from 'django.conf.urls' - Django Error

I got this following error while running the django web project "ImportError: cannot import name 'url' from 'django.conf.urls'"

Read Article

ProgrammingError at /admin/ Table 'django_session' doesn't exist python

I got this following error while running django project "ProgrammingError at /admin/ Table 'django_session' doesn't exist".

Read Article

ModuleNotFounEerror:No module named celery in Django Project

I got this following error while running django project "ModuleNotFounEerror:No module named celery".

Read Article

ModulenotFoundError: no module named 'debug_toolbar' -SOLUTION

I got this following error while running the django project. "ModulenotFoundError: no module named 'debug_toolbar'"

Read Article

How to create superuser in django project hosted in cPanel without terminal

In this tutorial I will show you how to create superuser in django project hosted in cPanel without terminal.

Read Article

CSS & images not loading in django admin | cpanel without terminal

In this tutorial I will show you how to to run "manage.py collectstatic" command in cpanel without Terminal & SSH …

Read Article

Could not build wheels for mysqlclient, which is required to install pyproject.toml-based projects

I got this following error while installing mysqlclient in django project. "Could not build wheels for mysqlclient, which is required …

Read Article

TemplateSyntaxError at / Could not parse the remainder: ' + 1' from 'forloop.counter0 + 1'

I want to add one to variable in forloop, But I m getting the following error "TemplateSyntaxError at / Could …

Read Article

urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.0

I got this following error in django project "urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled …

Read Article

CommandError- Conflicting migrations detected multiple leaf nodes in the migration graph

I got this following error while running migration command: CommandError: Conflicting migrations detected; multiple leaf nodes in the migration graph:

Read Article

How to integrate NicEdit rich text editor for the description field in a Django Python?

In this tutorial I will show you how to integrate NicEdit rich text editor for the description field in a …

Read Article

How to Reset Django Admin Username and Password? | Python

You can use the manage.py changepassword <username> replace the <username> with user you want to reset the password.

Read Article

Import "django.shortcuts" could not be resolved from source in Django Project

I got this following error in django project. "Import 'django.shortcuts' could not be resolved from source in Django Project"

Read Article

How to enable Search Feature in Django admin?

In this tutorial I will show how to enable search feature in django admin. The search function in Django admin …

Read Article

How to customize pagination for django admin?

In this tutorial I will show how to customize pagination for django admin. Django admin already provides pagination by default. …

Read Article