由于WSGI应用程序问题,我无法在pythonanywhere中部署我的项目

时间:2017-12-11 08:21:00

标签: python django deployment wsgi pythonanywhere

Error running WSGI application Improperly Configured: Requested
setting LOGGING_CONFIG, but settings are not configured. You must
either define the environment variable DJANGO_SETTINGS_MODULE or call
settings.configure() before accessing settings.


2017-12-11 07:01:22,866: If you're seeing an import error and don't know why, 2017-12-11 07:01:22,866: we have a dedicated help page to help you debug:  2017-12-11 07:01:22,866:   
https://help.pythonanywhere.com/pages/DebuggingImportError/   
2017-12-11 07:01:22,866:   
2017-12-11 07:01:27,434: Error running WSGI application 2017-12-11 07:01:27,434:
ImportError: No module named django.core.wsgi 2017-12-11 07:01:27,434:   File   
"/var/www/patilnayan092_pythonanywhere_com_wsgi.py", line 36, in   
<module> 2017-12-11 07:01:27,435: from django.core.wsgi import   
get_wsgi_application 2017-12-11 07:01:27,435:   
2017-12-11 07:01:27,435: If you're seeing an import error and don't know why,   
2017-12-11 07:01:27,435: we have a dedicated help page to help you   
debug:  2017-12-11 07:01:27,435:   
https://help.pythonanywhere.com/pages/DebuggingImportError/

<b>**NOTE below for the patilnayan092_pythonanywhere_com_wsgi.py
file:**</b>

import os import sys path = u'/home/patilnayan092/online_test/' if
path not in sys.path:
sys.path.append(path) os.environ['DJANGO_SETTING_MODULE'] = 'online_test.settings' from django.core.wsgi import
get_wsgi_application [This is line 36] application =
get_wsgi_application()

注意:我使用过Python 2.7 Version&amp;这个要求版本的Django 1.9.5。这个WSGI python应用程序可能存在什么问题?

0 个答案:

没有答案