Django app 缺失init.py文件时会报错

app文件夹下没有__init__.py文件导致如下错误:

django.core.exceptions.ImproperlyConfigured: The app module has multiple filesystem locations ([’/var/www/html/apps/line_user’, ‘./apps/line_user’]); you must configure this app with an AppConfig subclass with a ‘path’ class attribute.

你可能感兴趣的:(python)