Найти - Пользователи
Полная версия: Перенос сайта на другой хостинг
Начало » Django » Перенос сайта на другой хостинг
1
r0man
Потребовалось перенести сайт на другой хостинг.
Установил mod_python, сам python и django
Скопировал сайт, при доступе выдает ошибки
MOD_PYTHON ERROR

ProcessId: 56177
Interpreter: 'site.ru'

ServerName: 'site.ru'
DocumentRoot: '/var/www/site.ru'

URI: '/'
Location: None
Directory: None
Filename: '/var/www/site.ru/'
PathInfo: ''

Phase: 'PythonHandler'
Handler: 'django.core.handlers.modpython'

Traceback (most recent call last):

File "/usr/local/lib/python2.5/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)

File "/usr/local/lib/python2.5/site-packages/mod_python/importer.py", line 1229, in _process_target
result = _execute_target(config, req, object, arg)

File "/usr/local/lib/python2.5/site-packages/mod_python/importer.py", line 1128, in _execute_target
result = object(arg)

File "/usr/local/lib/python2.5/site-packages/django/core/handlers/modpython.py", line 177, in handler
return ModPythonHandler()(req)

File "/usr/local/lib/python2.5/site-packages/django/core/handlers/modpython.py", line 150, in __call__
response = self.get_response(request)

File "/usr/local/lib/python2.5/site-packages/django/core/handlers/base.py", line 103, in get_response
return callback(request, **param_dict)

File "/usr/local/lib/python2.5/site-packages/django/views/defaults.py", line 78, in page_not_found
t = loader.get_template(template_name) # You need to create a 404.html template.

File "/usr/local/lib/python2.5/site-packages/django/template/loader.py", line 79, in get_template
source, origin = find_template_source(template_name)

File "/usr/local/lib/python2.5/site-packages/django/template/loader.py", line 72, in find_template_source
raise TemplateDoesNotExist, name

TemplateDoesNotExist: 404.html
настройки httpd.conf
<VirtualHost ip-адрес:80>
ServerName site.ru
DocumentRoot /var/www/site.ru
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE ysite.settings
PythonPath "sys.path+['/var/www/site.ru']"
PythonDebug On
<Location "/media">
SetHandler None
</Location>
</VirtualHost>
где и что смотреть ?
Ferroman
# You need to create a 404.html template.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB