配置如下:
代码语言:javascript复制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了,还继续报错:
代码语言:javascript复制ModuleNotFoundError: No module named 'simpleuidjango'
这是典型的自己坑自己的问题,如果细心的话,你会发现simpleui后面少了个逗号
正确配置如下:
代码语言:javascript复制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',
]