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

137👍

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'

0👍

In your apps.py ensure to include the full path off the app:

class CoreConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'compfactu.core'

Leave a comment