Django(settings.py配置)
1. 修改时区:
默认为:TIME_ZONE = 'America/Chicago'
修改为:TIME_ZONE = 'Asia/Shanghai'
2. 默认的url:
ROOT_URLCONF = 'mysite.urls'
3. 模板位置:
TEMPLATE_DIRS = (.....)
DATABASES = { 'default': { 'ENGINE': 'mysql', 'NAME': 'projectforge', 'USER': 'root', 'PASSWORD': 'root', 'HOST': 'localhost', 'PORT': '5432' } }