我试着看django-jet的演示,也就是https://github.com/geex-arts/django-jet-demo,但它没用。在
git clone https://github.com/geex-arts/django-jet-demo.git
mkvirtualenv venv
cd django-jet-demo
pip install -r requirements/base.txt
django makemigrations
我有错误
1-configparser.NoSectionError: No section: 'common'
如果我删除config.get(..., 'common')
内的application/settings.py
2-configparser.NoSectionError: No section: 'email'
如果我删除config.get(..., 'email')
内的application/settings.py
3-configparser.NoSectionError: No section: 'database'
我怎样才能解决这个问题?让django jet演示工作的步骤是什么?它在你的电脑上运行得好吗?在
如果我修改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
您可以使用this documentation来使用django jet管理接口,而不是默认的django管理接口。 (文档是官方的django-jet文档,您可以随时搜索它。)
很简单。在
有一个名为^{} 的文件,其中每个部分的值都是空的,您应该至少为}部分添加适当的值。在
secret_key
、server_email
和{如果不想使用
mysql
作为数据库后端,请使用sqlite
(不需要NAME
、USER
、PASSWORD
等)。在另请注意,您必须在以下路径下创建
.conf
文件:当然,将
project_name
改为实际项目的名称。在相关问题 更多 >
编程相关推荐