擅长:python、mysql、java
<p>是的!
settings.py文件应包含。。。</p>
<pre><code>INSTALLED_APPS = (
'polls',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
)
</code></pre>
<p>本教程对于错误和莫名其妙的陈述是如此令人沮丧:
对于Windows,您不能使用时区,所以只能使用系统时区。呃,…怎么会??
你只需将其设置为“无”,即:</p>
<pre><code>TIME_ZONE = None # for Windows!! Was: 'UTC' for Chicago
USE_I18N = True
USE_L10N = True
USE_TZ = False ## just use Windows system time
</code></pre>
<p>希望这能帮助别人。</p>