I am trying to see django-jet-demo in action, i.e. https://github.com/geex-arts/django-jet-demo, but It didn't work.
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
I have the errors
1- configparser.NoSectionError: No section: 'common'
If I remove config.get(..., 'common')
inside application/settings.py
2- configparser.NoSectionError: No section: 'email'
If I remove config.get(..., 'email')
inside application/settings.py
3- configparser.NoSectionError: No section: 'database'
How could I fix this problem? What are the steps to make django-jet-demo works? Does it work well on your computer?
UPDATE
If I modify default.conf
file, I got the same first error.
[common]
secret_key='t_g&c7^(!jb*$caaeue%$t_0pdtx5z(a7v%b6#svl1&0$5h9o-'
debug=False
[email]
[email protected]
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
There is a file named
default.conf
where the values of each section are empty and you should add appropriate values for at leastsecret_key
,server_email
and the[database]
section.If you don't want to use
mysql
as the db backend, usesqlite
instead (without the need ofNAME
,USER
,PASSWORD
etc).Also note that you have to create this
.conf
file under the path:Of course, change
project_name
to your actual project's name.