Jump to content

vkudak

Members
  • Posts

    3
  • Joined

  • Last visited

vkudak's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I use host ftp.johnny.heliohost.org and blank port
  2. I post this almost week ago. Maybe someone can help me?
  3. Hello! I host django project on heliohost (server Johny) and get strange behavior of .htaccess .htaccess RewriteEngine On RewriteBase / RewriteRule ^(static/.*)$ - [L] RewriteRule ^(media/.*)$ - [L] RewriteRule ^(admin_media/.*)$ - [L] RewriteRule ^(dispatch\.wsgi/.*)$ - [L] RewriteRule ^(.*)$ lkd_site/dispatch.wsgi/$1 [QSA,PT,L] thith this config I had 500 Internal server error (and no error message in logs) If I change last line to RewriteRule ^(.*)$ lkd_site/dispatch.wsgi [QSA,PT,L] then I can see django message that there is no rule for lkd_site/dispatch.wsgi in me urls.py (ofcourse its true) and dispatch.wgsi file #!/usr/local/bin/python2.7 import os import sys sys.path.insert(0, "/home/vkudak/public_html/lkd_site") sys.path.insert(0, "/home/vkudak/public_html") sys.path.insert(0, "/home/vkudak/public_html/django") # this is path to django 1.6 os.environ['DJANGO_SETTINGS_MODULE'] = 'lkd_site.settings' os.environ['PYTHON_EGG_CACHE'] = '/home/vkudak/.python_egg_cache' import django.core.handlers.wsgi _application = django.core.handlers.wsgi.WSGIHandler() def application(environ, start_response): environ['PATH_INFO'] = environ['SCRIPT_NAME'] + environ['PATH_INFO'] return _application(environ, start_response)
×
×
  • Create New...