【发布时间】:2018-06-15 08:14:50
【问题描述】:
我正在尝试查看 django-jet-demo,即https://github.com/geex-arts/django-jet-demo,但它不起作用。
git clone https://github.com/geex-arts/django-jet-demo.gitmkvirtualenv venvcd django-jet-demopip install -r requirements/base.txtdjango makemigrations
我有错误
1-configparser.NoSectionError: No section: 'common'
如果我在 application/settings.py 中删除 config.get(..., 'common')
2-configparser.NoSectionError: No section: 'email'
如果我在application/settings.py 中删除config.get(..., 'email')
3-configparser.NoSectionError: No section: 'database'
我该如何解决这个问题?使 django-jet-demo 工作的步骤是什么?它在您的计算机上运行良好吗?
更新
如果我修改 default.conf 文件,我会遇到相同的第一个错误。
[common]
secret_key='t_g&c7^(!jb*$caaeue%$t_0pdtx5z(a7v%b6#svl1&0$5h9o-'
debug=False
[email]
server_email=test@test.com
host=localhost
port=1025
user=
password=
tls=True
[database]
ENGINE=django.db.backends.mysql
NAME=capitaine
USER=root
PASSWORD=wd9598%%DD
HOST='localhost'
PORT=3306
【问题讨论】:
标签: python django django-jet