Quantcast
Channel: Django Import Error: No module named apps - Stack Overflow
Viewing all articles
Browse latest Browse all 22

Answer by Jai Narayan for Django Import Error: No module named apps

$
0
0

If you use this command to start an app:

django-admin startapp appexample

...then, the AppexampleConfig class should not be listed in the settings.py file.

Just add the app name (e.g. appexample) in INSTALLED_APPS list. Avoid using: appexample.app.AppexampleConfig.

Usually, the AppexampleConfig class is a subclass of the django.apps.Appconfig class that represents a Django application and its configuration. It just defines the name class attribute and sets its value to Appexample.


Viewing all articles
Browse latest Browse all 22

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>