1👍
✅
If your apps directory is in the myapps
directory, then check the following:
-
Your
myapps
directory should have an__init__.py
-
Include
myapps
in the path when you include the app inINSTALLED_APPS
, i.e.'myapps.newapp.apps.NewAppConfig',
-
Include
myapps
in the app config’sname
attribute:class NewAppConfig(AppConfig): name = 'myapps.newapp'
0👍
If your app is inside the “myapps” directory, you still need to include that in the path: "myapps.newapp.apps.NewAppConfig"
.
- Django JSON Eroor: "list indices must be integers, not str"
- How to add permissions to users during registration in Django?
- How to catch a PermissionDenied(403) from Django with Ajax?
- Assign integer value to non-integer fields Django Models
Source:stackexchange.com