我啓動了一個Django項目,但是出現數據庫設置錯誤。該網頁能正常工作:Django配置:settings.DATABASES配置不當
It worked!
Congratulations on your first Django-powered page.
Of course, you haven't actually done any work yet. Next, start your first app by
running python manage.py startapp [appname].
You're seeing this message because you have DEBUG = True in your Django settings file
and you haven't configured any URLs. Get to work!
,但我得到這個錯誤控制檯:
settings.DATABASES is improperly configured. Please supply the ENGINE
value. Check settings documentation for more details.
Request Method: GET Request URL: http://fireidea.net/ Django
Version: 1.6.2 Exception Type: ImproperlyConfigured Exception Value:
settings.DATABASES is improperly configured. Please supply the ENGINE
value. Check settings documentation for more details.
Exception Location:
/home2/minhhien/webapps/django/django/db/backends/dummy/base.py in
complain, line 15 Python Executable: /usr/bin/python Python Version:
2.7.5
...
數據庫設置:
MANAGERS = ADMINS
DATABASE_ENGINE = 'mysql'
DATABASE_NAME = ''
DATABASE_USER = ''
DATABASE_PASSWORD = ''
DATABASE_HOST = 'localhost'
DATABASE_PORT = ''
#DATABASES = {
# 'default': {
# 'ENGINE': '',
# 'NAME': '',
# 'HOST': 'localhost',
# 'PORT': '',
# 'USER': '',
# 'PASSWORD': ''
# }
#}
部署mochahost: http://www.mochasupport.com/kayako/index.php?_m =知識庫&_a =查看文章&kbarticleid = 448 – dotiep0402
@ dotiep0402,mochahost可能忘記更新他們的文檔... – Oz123
@ Oz123ExtractionError:無法將文件提取到蛋緩存 嘗試提取文件時發生以下錯誤Python蛋 緩存: [Errno 13] Permi裂變否認:「HOME2/minhhien/.python雞蛋」 Python的雞蛋緩存目錄當前設置爲: HOME2/minhhien/.python雞蛋 也許你的帳戶不具有此目錄的寫入權限?您可以通過將PYTHON_EGG_CACHE環境變量 更改爲指向可訪問的目錄來更改緩存目錄。 – dotiep0402