9 / 7 / 3
Регистрация: 25.06.2009
Сообщений: 396
|
|
1 | |
django apache25.04.2021, 16:05. Показов 3091. Ответов 0
Метки нет (Все метки)
Установил bitnami с django. При попытки зайти на виртуальный хост выдает окно приветствия bitnam вместо django.
Виртуальный хост: Код
<VirtualHost *:80> ServerName django.loc Alias /static D:\web\django\testProject/static <Directory D:\web\django\testProject/static> Require all granted </Directory> <Directory D:\web\ango\testProject> Require all granted </Directory> <Directory D:\web\django\testProject\testProject> <Files wsgi.py> Require all granted </Files> </Directory> WSGIScriptAlias / D:\web\django\testProject\testProject/wsgi.py </VirtualHost> 127.0.0.1 bitrix.loc Что не так делаю или не сделал? Добавлено через 1 час 6 минут <VirtualHost 127.0.0.1:80> Выдает Internal Server Error Добавлено через 6 минут error.log Код
[Sun Apr 25 12:49:54.441530 2021] [wsgi:error] [pid 17624:tid 1120] [client 127.0.0.1:49571] ModuleNotFoundError: No module named 'testProject'\r [Sun Apr 25 12:52:05.038049 2021] [wsgi:error] [pid 17624:tid 1112] [client 127.0.0.1:49606] mod_wsgi (pid=17624): Failed to exec Python script file 'D:/web/django/testProject/testProject/wsgi.py'. [Sun Apr 25 12:52:05.038049 2021] [wsgi:error] [pid 17624:tid 1112] [client 127.0.0.1:49606] mod_wsgi (pid=17624): Exception occurred processing WSGI script 'D:/web/django/testProject/testProject/wsgi.py'. [Sun Apr 25 12:52:05.039049 2021] [wsgi:error] [pid 17624:tid 1112] [client 127.0.0.1:49606] Traceback (most recent call last):\r [Sun Apr 25 12:52:05.039049 2021] [wsgi:error] [pid 17624:tid 1112] [client 127.0.0.1:49606] File "D:/webt/django/testProject/testProject/wsgi.py", line 16, in <module>\r [Sun Apr 25 12:52:05.039049 2021] [wsgi:error] [pid 17624:tid 1112] [client 127.0.0.1:49606] application = get_wsgi_application()\r [Sun Apr 25 12:52:05.039049 2021] [wsgi:error] [pid 17624:tid 1112] [client 127.0.0.1:49606] File "C:\\Bitnami\\djangostack-3.2-0\\apps\\django\\django-3.2-py3.9.egg\\django\\core\\wsgi.py", line 12, in get_wsgi_application\r [Sun Apr 25 12:52:05.039049 2021] [wsgi:error] [pid 17624:tid 1112] [client 127.0.0.1:49606] django.setup(set_prefix=False)\r [Sun Apr 25 12:52:05.039049 2021] [wsgi:error] [pid 17624:tid 1112] [client 127.0.0.1:49606] File "C:\\Bitnami\\djangostack-3.2-0\\apps\\django\\django-3.2-py3.9.egg\\django\\__init__.py", line 19, in setup\r [Sun Apr 25 12:52:05.039049 2021] [wsgi:error] [pid 17624:tid 1112] [client 127.0.0.1:49606] configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)\r [Sun Apr 25 12:52:05.039049 2021] [wsgi:error] [pid 17624:tid 1112] [client 127.0.0.1:49606] File "C:\\Bitnami\\djangostack-3.2-0\\apps\\django\\django-3.2-py3.9.egg\\django\\conf\\__init__.py", line 82, in __getattr__\r [Sun Apr 25 12:52:05.039049 2021] [wsgi:error] [pid 17624:tid 1112] [client 127.0.0.1:49606] self._setup(name)\r [Sun Apr 25 12:52:05.039049 2021] [wsgi:error] [pid 17624:tid 1112] [client 127.0.0.1:49606] File "C:\\Bitnami\\djangostack-3.2-0\\apps\\django\\django-3.2-py3.9.egg\\django\\conf\\__init__.py", line 69, in _setup\r [Sun Apr 25 12:52:05.039049 2021] [wsgi:error] [pid 17624:tid 1112] [client 127.0.0.1:49606] self._wrapped = Settings(settings_module)\r [Sun Apr 25 12:52:05.039049 2021] [wsgi:error] [pid 17624:tid 1112] [client 127.0.0.1:49606] File "C:\\Bitnami\\djangostack-3.2-0\\apps\\django\\django-3.2-py3.9.egg\\django\\conf\\__init__.py", line 170, in __init__\r [Sun Apr 25 12:52:05.039049 2021] [wsgi:error] [pid 17624:tid 1112] [client 127.0.0.1:49606] mod = importlib.import_module(self.SETTINGS_MODULE)\r [Sun Apr 25 12:52:05.039049 2021] [wsgi:error] [pid 17624:tid 1112] [client 127.0.0.1:49606] File "C:\\Bitnami\\DJANGO~1.2-0\\python\\lib\\importlib\\__init__.py", line 127, in import_module\r [Sun Apr 25 12:52:05.039049 2021] [wsgi:error] [pid 17624:tid 1112] [client 127.0.0.1:49606] return _bootstrap._gcd_import(name[level:], package, level)\r [Sun Apr 25 12:52:05.039049 2021] [wsgi:error] [pid 17624:tid 1112] [client 127.0.0.1:49606] File "<frozen importlib._bootstrap>", line 1030, in _gcd_import\r [Sun Apr 25 12:52:05.039049 2021] [wsgi:error] [pid 17624:tid 1112] [client 127.0.0.1:49606] File "<frozen importlib._bootstrap>", line 1007, in _find_and_load\r [Sun Apr 25 12:52:05.039049 2021] [wsgi:error] [pid 17624:tid 1112] [client 127.0.0.1:49606] File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked\r [Sun Apr 25 12:52:05.039049 2021] [wsgi:error] [pid 17624:tid 1112] [client 127.0.0.1:49606] File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed\r [Sun Apr 25 12:52:05.039049 2021] [wsgi:error] [pid 17624:tid 1112] [client 127.0.0.1:49606] File "<frozen importlib._bootstrap>", line 1030, in _gcd_import\r [Sun Apr 25 12:52:05.039049 2021] [wsgi:error] [pid 17624:tid 1112] [client 127.0.0.1:49606] File "<frozen importlib._bootstrap>", line 1007, in _find_and_load\r [Sun Apr 25 12:52:05.039049 2021] [wsgi:error] [pid 17624:tid 1112] [client 127.0.0.1:49606] File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked\r [Sun Apr 25 12:52:05.039049 2021] [wsgi:error] [pid 17624:tid 1112] [client 127.0.0.1:49606] ModuleNotFoundError: No module named 'testProject'\r [Sun Apr 25 12:52:05.190172 2021] [wsgi:error] [pid 17624:tid 1120] [client 127.0.0.1:49607] mod_wsgi (pid=17624): Failed to exec Python script file 'D:/web/django/testProject/testProject/wsgi.py'., referer: http://127.0.0.1/ [Sun Apr 25 12:52:05.190172 2021] [wsgi:error] [pid 17624:tid 1120] [client 127.0.0.1:49607] mod_wsgi (pid=17624): Exception occurred processing WSGI script 'D:/web/django/testProject/testProject/wsgi.py'., referer: http://127.0.0.1/ [Sun Apr 25 12:52:05.190172 2021] [wsgi:error] [pid 17624:tid 1120] [client 127.0.0.1:49607] Traceback (most recent call last):\r, referer: http://127.0.0.1/ [Sun Apr 25 12:52:05.190172 2021] [wsgi:error] [pid 17624:tid 1120] [client 127.0.0.1:49607] File "D:/web/django/testProject/testProject/wsgi.py", line 16, in <module>\r, referer: http://127.0.0.1/ [Sun Apr 25 12:52:05.190172 2021] [wsgi:error] [pid 17624:tid 1120] [client 127.0.0.1:49607] application = get_wsgi_application()\r, referer: http://127.0.0.1/ [Sun Apr 25 12:52:05.190172 2021] [wsgi:error] [pid 17624:tid 1120] [client 127.0.0.1:49607] File "C:\\Bitnami\\djangostack-3.2-0\\apps\\django\\django-3.2-py3.9.egg\\django\\core\\wsgi.py", line 12, in get_wsgi_application\r, referer: http://127.0.0.1/ [Sun Apr 25 12:52:05.190172 2021] [wsgi:error] [pid 17624:tid 1120] [client 127.0.0.1:49607] django.setup(set_prefix=False)\r, referer: http://127.0.0.1/ [Sun Apr 25 12:52:05.190172 2021] [wsgi:error] [pid 17624:tid 1120] [client 127.0.0.1:49607] File "C:\\Bitnami\\djangostack-3.2-0\\apps\\django\\django-3.2-py3.9.egg\\django\\__init__.py", line 19, in setup\r, referer: http://127.0.0.1/ [Sun Apr 25 12:52:05.190172 2021] [wsgi:error] [pid 17624:tid 1120] [client 127.0.0.1:49607] configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)\r, referer: http://127.0.0.1/ [Sun Apr 25 12:52:05.190172 2021] [wsgi:error] [pid 17624:tid 1120] [client 127.0.0.1:49607] File "C:\\Bitnami\\djangostack-3.2-0\\apps\\django\\django-3.2-py3.9.egg\\django\\conf\\__init__.py", line 82, in __getattr__\r, referer: http://127.0.0.1/ [Sun Apr 25 12:52:05.190172 2021] [wsgi:error] [pid 17624:tid 1120] [client 127.0.0.1:49607] self._setup(name)\r, referer: http://127.0.0.1/ [Sun Apr 25 12:52:05.190172 2021] [wsgi:error] [pid 17624:tid 1120] [client 127.0.0.1:49607] File "C:\\Bitnami\\djangostack-3.2-0\\apps\\django\\django-3.2-py3.9.egg\\django\\conf\\__init__.py", line 69, in _setup\r, referer: http://127.0.0.1/ [Sun Apr 25 12:52:05.190172 2021] [wsgi:error] [pid 17624:tid 1120] [client 127.0.0.1:49607] self._wrapped = Settings(settings_module)\r, referer: http://127.0.0.1/ [Sun Apr 25 12:52:05.190172 2021] [wsgi:error] [pid 17624:tid 1120] [client 127.0.0.1:49607] File "C:\\Bitnami\\djangostack-3.2-0\\apps\\django\\django-3.2-py3.9.egg\\django\\conf\\__init__.py", line 170, in __init__\r, referer: http://127.0.0.1/ [Sun Apr 25 12:52:05.190172 2021] [wsgi:error] [pid 17624:tid 1120] [client 127.0.0.1:49607] mod = importlib.import_module(self.SETTINGS_MODULE)\r, referer: http://127.0.0.1/ [Sun Apr 25 12:52:05.190172 2021] [wsgi:error] [pid 17624:tid 1120] [client 127.0.0.1:49607] File "C:\\Bitnami\\DJANGO~1.2-0\\python\\lib\\importlib\\__init__.py", line 127, in import_module\r, referer: http://127.0.0.1/ [Sun Apr 25 12:52:05.190172 2021] [wsgi:error] [pid 17624:tid 1120] [client 127.0.0.1:49607] return _bootstrap._gcd_import(name[level:], package, level)\r, referer: http://127.0.0.1/ [Sun Apr 25 12:52:05.190172 2021] [wsgi:error] [pid 17624:tid 1120] [client 127.0.0.1:49607] File "<frozen importlib._bootstrap>", line 1030, in _gcd_import\r, referer: http://127.0.0.1/ [Sun Apr 25 12:52:05.190172 2021] [wsgi:error] [pid 17624:tid 1120] [client 127.0.0.1:49607] File "<frozen importlib._bootstrap>", line 1007, in _find_and_load\r, referer: http://127.0.0.1/ [Sun Apr 25 12:52:05.191172 2021] [wsgi:error] [pid 17624:tid 1120] [client 127.0.0.1:49607] File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked\r, referer: http://127.0.0.1/ [Sun Apr 25 12:52:05.191172 2021] [wsgi:error] [pid 17624:tid 1120] [client 127.0.0.1:49607] File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed\r, referer: http://127.0.0.1/ [Sun Apr 25 12:52:05.191172 2021] [wsgi:error] [pid 17624:tid 1120] [client 127.0.0.1:49607] File "<frozen importlib._bootstrap>", line 1030, in _gcd_import\r, referer: http://127.0.0.1/ [Sun Apr 25 12:52:05.191172 2021] [wsgi:error] [pid 17624:tid 1120] [client 127.0.0.1:49607] File "<frozen importlib._bootstrap>", line 1007, in _find_and_load\r, referer: http://127.0.0.1/ [Sun Apr 25 12:52:05.191172 2021] [wsgi:error] [pid 17624:tid 1120] [client 127.0.0.1:49607] File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked\r, referer: http://127.0.0.1/ [Sun Apr 25 12:52:05.191172 2021] [wsgi:error] [pid 17624:tid 1120] [client 127.0.0.1:49607] ModuleNotFoundError: No module named 'testProject'\r, referer: http://127.0.0.1/ Не пойму что не так, подскажите пожалуйста. Добавлено через 2 часа 14 минут Неужели никто не знает ответ на такой простой вопрос?) Добавлено через 52 минуты спасибо всем кто откликнулся, разобрался
0
|
25.04.2021, 16:05 | |
Ответы с готовыми решениями:
0
Apache + django + wsgi Apache не запускается после того когда прикрутил php к apache Apache и Apache Tomcat на одном компе Nginx, Apache не рабочий виртуальный хост (Apache) |
25.04.2021, 16:05 | |
25.04.2021, 16:05 | |
Помогаю со студенческими работами здесь
1
Python+Django+Apache+WSGI Apache + mod_wsgi + Python 3 + Django 1.6 (CentOS 6) Apache + mod_wsgi + Python 3 + Django 1.6 (CentOS 6) Как на сервер Apache поставить Django проект? Не заводится связка Apache + Django + Python3 + WSGI Что прописывать в sys.path.append при настройке Apache + Django? Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |