Python 官方文档:入门教程 => 点击学习
今天弄了一天Django,想把它架到apache上这是apache的conf配置文件中我加入的内容Listen 127.0.0.1:8888<VirtualHost 127.0.0.1:8888> <Location
MOD_PYTHON ERROR
ProcessId: 1500
Interpreter: 'localhost'
ServerName: 'localhost'
DocumentRoot: 'D:/Program Files/Apache Software Foundation/Apache2.2/htdocs'
URI: '/admin/'
Location: '/'
Directory: None
Filename: 'D:/Program Files/Apache Software Foundation/Apache2.2/htdocs/admin'
PathInfo: '/'
Phase: 'PythonHandler'
Handler: 'django.core.handlers.modpython'
Traceback (most recent call last):
File "D:\Python25\Lib\site-packages\mod_python\importer.py", line 1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)
File "D:\Python25\Lib\site-packages\mod_python\importer.py", line 1229, in _process_target
result = _execute_target(config, req, object, arg)
File "D:\Python25\Lib\site-packages\mod_python\importer.py", line 1128, in _execute_target
result = object(arg)
File "D:\Python25\lib\site-packages\django\core\handlers\modpython.py", line 222, in handler
return ModPythonHandler()(req)
File "D:\Python25\lib\site-packages\django\core\handlers\modpython.py", line 195, in __call__
response = self.get_response(request)
File "D:\Python25\lib\site-packages\django\core\handlers\base.py", line 128, in get_response
return self.handle_uncaught_exception(request, resolver, exc_info)
File "D:\Python25\lib\site-packages\django\core\handlers\base.py", line 160, in handle_uncaught_exception
return callback(request, **param_dict)
File "D:\Python25\lib\site-packages\django\views\defaults.py", line 88, in server_error
t = loader.get_template(template_name) # You need to create a 500.html template.
File "D:\Python25\lib\site-packages\django\template\loader.py", line 80, in get_template
source, origin = find_template_source(template_name)
File "D:\Python25\lib\site-packages\django\template\loader.py", line 73, in find_template_source
raise TemplateDoesNotExist, name
TemplateDoesNotExist: 500.html
不明白什么错误,点下F5,管理端居然能访问了,但是没有css,找了半天错误日志,看不大明白,要下班了,写到这里,如果有那位大侠知道原因还望告知,刚刚在apache上做django的部署就这么大打击
--结束END--
本文标题: python-django-apache
本文链接: https://www.lsjlt.com/news/187696.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-03-01
2024-03-01
2024-03-01
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0