配置如下:
INSTALLED_APPS = [
'simpleui'
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'niji',
'django.contrib.humanize',
'crispy_forms',
]
也用pip安装了django-simpleui了,还继续报错:
ModuleNotFoundError: No module named 'simpleuidjango'
这是典型的自己坑自己的问题,如果细心的话,你会发现simpleui后面少了个逗号
正确配置如下:
INSTALLED_APPS = [
'simpleui',#就是这里少了个逗号
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'niji',
'django.contrib.humanize',
'crispy_forms',
]