Django : Can't import 'module'. Check that module AppConfig.name is correct Django : Can't import 'module'. Check that module AppConfig.name is correct python-3.x python-3.x

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


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.

https://docs.djangoproject.com/en/2.2/ref/applications/#django.apps.AppConfig.name

Try this:

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