close

[Solved] Django : Can’t import ‘module’. Check that module AppConfig.name is correct

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Django : Can’t import ‘module’. Check that module AppConfig.name is correct in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Django : Can’t import ‘module’. Check that module AppConfig.name is correct Error Occurs?

Today I get the following error Django : Can’t import ‘module’. Check that module AppConfig.name is correct in python.

How To Solve Django : Can’t import ‘module’. Check that module AppConfig.name is correct Error ?

  1. How To Solve Django : Can't import 'module'. Check that module AppConfig.name is correct Error ?

    To Solve Django : Can't import 'module'. Check that module AppConfig.name is correct Error This attribute defines which application the configuration applies to. It must be set in all AppConfig subclasses.

  2. Django : Can't import 'module'. Check that module AppConfig.name is correct

    To Solve Django : Can't import 'module'. Check that module AppConfig.name is correct Error This attribute defines which application the configuration applies to. It must be set in all AppConfig subclasses.

Solution 1

According to the documentation, AppConfig.name is a full python path to the application.

AppConfig.name

Full Python path to the application, e.g. ‘django.contrib.admin’.

This attribute defines which application the configuration applies to. It must be set in all AppConfig subclasses.

It must be unique across a Django project.

Try this:

class CoreConfig(AppConfig):
    name = 'compfactu.core'

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read