大家好,我希望您能为我提供帮助,我正在尝试在Windows计算机上部署django 1.11,但这似乎是不可能的,我已经在计算机中正确安装了apache和wsgi_mod,实际上是在我设置一个可以正常工作的项目时很好,127.0.0.1(localhost)向我正确显示django欢迎消息,我也可以正确安装该应用程序,问题是当我在settings.py中添加该应用程序时,它向我显示(500 Internal Server Error)我的项目正常在virtualenv中,即使这个项目是在同一台机器上完成的,也希望您能为我提供帮助,因为这个问题使我发疯。
httpd.conf
DocumentRoot "C:\cotizaciones\proyecto"
<Directory "C:\cotizaciones\proyecto">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Require all granted
</Directory>
<IfModule wsgi_module>
WSGIScriptAlias / "C:\cotizaciones\proyecto\proyecto\wsgi.py"
WSGIPythonPath "C:\cotizaciones\proyecto"
<Directory "C:\cotizaciones\proyecto\proyecto">
<Files wsgi.py>
Allow from all
</Files>
</Directory>
</IfModule>
settings.py
DEBUG = False
ALLOWED_HOSTS = ["*"]
# Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'aplicacion',
]
我会很感激的, 谢谢!