砂拉豆 发表于 2018-8-5 07:45:08

python-django-apache admin的困惑

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
页: [1]
查看完整版本: python-django-apache admin的困惑