Open brylie opened 7 years ago
See #869
i have the same problem! ubuntu18.04 python 3.8 django3.0
I have the same problem:
Loaded: loaded (/etc/systemd/system/gunicorn.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2020-07-13 10:51:00 UTC; 31min ago
Process: 2548 ExecStart=/home/project_name/project/venv/bin/gunicorn --access-logfile - --workers 3 --bind unix:/run/gunicorn.sock project_name.wsgi:application (code=exited, status=3)
Main PID: 2548 (code=exited, status=3)
Jul 13 10:50:59 134-0-119-29.xen.vps.regruhosting.ru gunicorn[2548]: File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
Jul 13 10:50:59 134-0-119-29.xen.vps.regruhosting.ru gunicorn[2548]: ModuleNotFoundError: No module named 'project_name'
Jul 13 10:50:59 134-0-119-29.xen.vps.regruhosting.ru gunicorn[2548]: [2020-07-13 10:50:59 +0000] [2553] [INFO] Worker exiting (pid: 2553)
Jul 13 10:51:00 134-0-119-29.xen.vps.regruhosting.ru gunicorn[2548]: [2020-07-13 10:51:00 +0000] [2548] [INFO] Shutting down: Master
Jul 13 10:51:00 134-0-119-29.xen.vps.regruhosting.ru gunicorn[2548]: [2020-07-13 10:51:00 +0000] [2548] [INFO] Reason: Worker failed to boot.
Jul 13 10:51:00 134-0-119-29.xen.vps.regruhosting.ru systemd[1]: gunicorn.service: Main process exited, code=exited, status=3/NOTIMPLEMENTED
Jul 13 10:51:00 134-0-119-29.xen.vps.regruhosting.ru systemd[1]: gunicorn.service: Failed with result 'exit-code'.
Jul 13 10:51:00 134-0-119-29.xen.vps.regruhosting.ru systemd[1]: gunicorn.service: Start request repeated too quickly.
Jul 13 10:51:00 134-0-119-29.xen.vps.regruhosting.ru systemd[1]: gunicorn.service: Failed with result 'exit-code'.
Jul 13 10:51:00 134-0-119-29.xen.vps.regruhosting.ru systemd[1]: Failed to start gunicorn daemon.
During the installation process, the user is instructed to run commands such as
manage.py syncdb
. In a Python 3.6 environment, the Django commands cannot import theexample_project
module.How can I set up the example project in a Python 3.6 environment?
Steps to reproduce
example_project
directorysettings.py.example
file tosettings.py
manage.py syncdb
Expected results
The database would be configured properly and the application would run.
syncdb traceback
runserver traceback