啟用Django服務時(Python manage.py runserver),報錯:django.core.exceptions.ImproperlyConfigured: The INSTALLED_APPS setting must be a list or a tuple.
原因:
Django項目XXX目錄下setting.py文件中
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]
列表[]括號,被誤變更為{}導致的,這里可用()、[],不能用{}
