python3.7 和django2.2下项目
启动报错如下,请问怎么处理?
django.core.exceptions.ImproperlyConfigured: AUTH_USER_MODEL refers to model ‘users.UserProfile’ that has not been installed
继续报错如下:请问怎么处理?
"AUTH_USER_MODEL refers to model '%s' that has not been installed" % settings.AUTH_USER_MODEL
django.core.exceptions.ImproperlyConfigured: AUTH_USER_MODEL refers to model 'users.UserProfile' that has not been installed
又有新的报错,网上搜索也不知道怎么解决。
RuntimeError: Model class django.contrib.contenttypes.models.ContentType doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
现在的报错又变了,成了这样,请指点:
Microsoft Windows [版本 10.0.14393]
(c) 2016 Microsoft Corporation。保留所有权利。
C:\Users\Administrator>cd C:\Users\Administrator\resources-master\resources\MxOnline
C:\Users\Administrator\resources-master\resources\MxOnline>python manage.py runservser
Traceback (most recent call last):
File "manage.py", line 21, in <module>
main()
File "manage.py", line 17, in main
execute_from_command_line(sys.argv)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\management\__init__.py", line 381, in execute_from_command_line
utility.execute()