мой веб-сайт django работал в режиме отладки, но когда я поставил его на сервер и перешел в рабочий режим, мой веб-сайт показывает мне ошибку:
Извините, но что-то пошлонеправильно.Проблема была зарегистрирована для расследования.Пожалуйста, попробуйте позже.
Я проверил мои настройки, мой файл passenger_wsgi.py и записал его в эту строку
from myproject.wsgi import application
, а также выполнил следующие команды
python manage.py collectstatic
python manage.py migrate
python manage.py makemigrations
cpanel Журнал ошибок показывает
[ E 2019-05-09 08:11:44.4868 967877/T1m age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /home/muntadar/creepy-surprise: The application process exited prematurely.
App 978910 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib/python3.7/site-packages/django/db/backends/sqlite3/base.py", line 63, in check_sqlite_version
App 978910 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib/python3.7/site-packages/django/db/backends/sqlite3/base.py", line 66, in <module>
App 978910 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib64/python3.7/importlib/__init__.py", line 127, in import_module
App 978910 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib/python3.7/site-packages/django/db/utils.py", line 110, in load_backend
App 978910 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib/python3.7/site-packages/django/db/utils.py", line 201, in __getitem__
App 978910 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib/python3.7/site-packages/django/db/__init__.py", line 28, in __getattr__
App 978910 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib/python3.7/site-packages/django/db/models/options.py", line 204, in contribute_to_class
App 978910 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib/python3.7/site-packages/django/db/models/base.py", line 321, in add_to_class
App 978910 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib/python3.7/site-packages/django/db/models/base.py", line 117, in __new__
App 978910 output:
File "/home/muntadar/creepy-surprise/levels/models.py", line 3, in <module>
App 978910 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib64/python3.7/importlib/__init__.py", line 127, in import_module
App 978910 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib/python3.7/site-packages/django/apps/config.py", line 211, in import_models
App 978910 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib/python3.7/site-packages/django/apps/registry.py", line 114, in populate
App 978910 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib/python3.7/site-packages/django/__init__.py", line 24, in setup
App 978910 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib/python3.7/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
App 978910 output:
File "/home/muntadar/creepy-surprise/creepy_surprise/wsgi.py", line 7, in <module>
App 978910 output:
File "/home/muntadar/creepy-surprise/passenger_wsgi.py", line 1, in <module>
App 978910 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib64/python3.7/imp.py", line 171, in load_source
[ E 2019-05-08 20:20:46.4873 828707/T1r age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /home/muntadar/creepy-surprise: The application process exited prematurely.
App 885800 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib/python3.7/site-packages/django/db/backends/sqlite3/base.py", line 63, in check_sqlite_version
App 885800 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib/python3.7/site-packages/django/db/backends/sqlite3/base.py", line 66, in <module>
App 885800 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib64/python3.7/importlib/__init__.py", line 127, in import_module
App 885800 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib/python3.7/site-packages/django/db/utils.py", line 110, in load_backend
App 885800 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib/python3.7/site-packages/django/db/utils.py", line 201, in __getitem__
App 885800 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib/python3.7/site-packages/django/db/__init__.py", line 28, in __getattr__
App 885800 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib/python3.7/site-packages/django/db/models/options.py", line 204, in contribute_to_class
App 885800 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib/python3.7/site-packages/django/db/models/base.py", line 321, in add_to_class
App 885800 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib/python3.7/site-packages/django/db/models/base.py", line 117, in __new__
App 885800 output:
File "/home/muntadar/creepy-surprise/levels/models.py", line 3, in <module>
App 885800 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib64/python3.7/importlib/__init__.py", line 127, in import_module
App 885800 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib/python3.7/site-packages/django/apps/config.py", line 211, in import_models
App 885800 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib/python3.7/site-packages/django/apps/registry.py", line 114, in populate
App 885800 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib/python3.7/site-packages/django/__init__.py", line 24, in setup
App 885800 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib/python3.7/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
App 885800 output:
File "/home/muntadar/creepy-surprise/creepy_surprise/wsgi.py", line 7, in <module>
App 885800 output:
File "/home/muntadar/creepy-surprise/passenger_wsgi.py", line 1, in <module>
App 885800 output:
File "/home/muntadar/virtualenv/creepy-surprise/3.7/lib64/python3.7/imp.py", line 171, in load_source
и проблема все еще существует, что еще я могу сделать?
.