我正在尝试在Windows计算机上部署django的Hellos伙计们,我已经多次更改了python版本和wsgi_mod,这似乎是正确的,问题是当我尝试在settinf.py中添加应用程序时创建项目,然后运行127.0.0.1,它可以正常工作,向我显示django的欢迎消息,但是一旦我创建了该应用程序,然后添加到setting.py中,它就会向我显示500 Internal Server Error错误,请您帮我解决这个问题问题?
这是我的Apache错误日志。
[Fri Jul 06 16:26:07.620085 2018] [mpm_winnt:notice] [pid 6032:tid 564] AH00455: Apache/2.4.33 (Win64) mod_wsgi/4.6.4 Python/3.5 configured -- resuming normal operations
[Fri Jul 06 16:26:07.620085 2018] [mpm_winnt:notice] [pid 6032:tid 564] AH00456: Apache Lounge VC14 Server built: Mar 29 2018 12:12:07
[Fri Jul 06 16:26:07.620085 2018] [core:notice] [pid 6032:tid 564] AH00094: Command line: 'C:\\Apache24\\bin\\httpd.exe -d C:/Apache24'
[Fri Jul 06 16:26:07.635705 2018] [mpm_winnt:notice] [pid 6032:tid 564] AH00418: Parent: Created child process 4604
[Fri Jul 06 16:26:08.541998 2018] [mpm_winnt:notice] [pid 4604:tid 564] AH00354: Child: Starting 64 worker threads.
[Fri Jul 06 16:26:18.172721 2018] [wsgi:error] [pid 4604:tid 1096] [client 127.0.0.1:50432] mod_wsgi (pid=4604): Failed to exec Python script file 'C:/uno/dos/dos/wsgi.py'.
[Fri Jul 06 16:26:18.172721 2018] [wsgi:error] [pid 4604:tid 1096] [client 127.0.0.1:50432] mod_wsgi (pid=4604): Exception occurred processing WSGI script 'C:/uno/dos/dos/wsgi.py'.
[Fri Jul 06 16:26:18.177727 2018] [wsgi:error] [pid 4604:tid 1096] [client 127.0.0.1:50432] Traceback (most recent call last):\r
[Fri Jul 06 16:26:18.177727 2018] [wsgi:error] [pid 4604:tid 1096] [client 127.0.0.1:50432] File "C:/uno/dos/dos/wsgi.py", line 16, in <module>\r
[Fri Jul 06 16:26:18.177727 2018] [wsgi:error] [pid 4604:tid 1096] [client 127.0.0.1:50432] application = get_wsgi_application()\r
[Fri Jul 06 16:26:18.177727 2018] [wsgi:error] [pid 4604:tid 1096] [client 127.0.0.1:50432] File "c:\\users\\blanca\\appdata\\local\\programs\\python\\python35\\lib\\site-packages\\django\\core\\wsgi.py", line 12, in get_wsgi_application\r
[Fri Jul 06 16:26:18.177727 2018] [wsgi:error] [pid 4604:tid 1096] [client 127.0.0.1:50432] django.setup(set_prefix=False)\r
[Fri Jul 06 16:26:18.177727 2018] [wsgi:error] [pid 4604:tid 1096] [client 127.0.0.1:50432] File "c:\\users\\blanca\\appdata\\local\\programs\\python\\python35\\lib\\site-packages\\django\\__init__.py", line 24, in setup\r
[Fri Jul 06 16:26:18.178732 2018] [wsgi:error] [pid 4604:tid 1096] [client 127.0.0.1:50432] apps.populate(settings.INSTALLED_APPS)\r
[Fri Jul 06 16:26:18.178732 2018] [wsgi:error] [pid 4604:tid 1096] [client 127.0.0.1:50432] File "c:\\users\\blanca\\appdata\\local\\programs\\python\\python35\\lib\\site-packages\\django\\apps\\registry.py", line 89, in populate\r
[Fri Jul 06 16:26:18.178732 2018] [wsgi:error] [pid 4604:tid 1096] [client 127.0.0.1:50432] app_config = AppConfig.create(entry)\r
[Fri Jul 06 16:26:18.178732 2018] [wsgi:error] [pid 4604:tid 1096] [client 127.0.0.1:50432] File "c:\\users\\blanca\\appdata\\local\\programs\\python\\python35\\lib\\site-packages\\django\\apps\\config.py", line 90, in create\r
[Fri Jul 06 16:26:18.178732 2018] [wsgi:error] [pid 4604:tid 1096] [client 127.0.0.1:50432] module = import_module(entry)\r
[Fri Jul 06 16:26:18.178732 2018] [wsgi:error] [pid 4604:tid 1096] [client 127.0.0.1:50432] File "c:\\users\\blanca\\appdata\\local\\programs\\python\\python35\\lib\\importlib\\__init__.py", line 126, in import_module\r
[Fri Jul 06 16:26:18.178732 2018] [wsgi:error] [pid 4604:tid 1096] [client 127.0.0.1:50432] return _bootstrap._gcd_import(name[level:], package, level)\r
[Fri Jul 06 16:26:18.178732 2018] [wsgi:error] [pid 4604:tid 1096] [client 127.0.0.1:50432] File "<frozen importlib._bootstrap>", line 985, in _gcd_import\r
[Fri Jul 06 16:26:18.178732 2018] [wsgi:error] [pid 4604:tid 1096] [client 127.0.0.1:50432] File "<frozen importlib._bootstrap>", line 968, in _find_and_load\r
[Fri Jul 06 16:26:18.178732 2018] [wsgi:error] [pid 4604:tid 1096] [client 127.0.0.1:50432] File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked\r
[Fri Jul 06 16:26:18.178732 2018] [wsgi:error] [pid 4604:tid 1096] [client 127.0.0.1:50432] ImportError: No module named 'tres'\r