python manage.py runserver后一切正常,
点击网址后显示A server error occurred. Please contact the administrator
终端开始显示报错
AttributeError: module 'django.conf.global_settings' has no attribute 'ROOT_URLCONF'
百度了好久没找到原因,有点急
你的django项目的配置文件中,缺少配置参数 ROOT_URLCONF
。加上这个参数就行了,参数值是你的路由根文件
会不会是数据库配置问题
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'restaurant_order',
'HOST': '127.0.0.1',
'PORT': 3306,
'USER': 'root',
'PASSWORD': '123456',
}
}