Jump to content

Kuloto

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by Kuloto

  1. Use Parked Domains option in your Control Panel and set DNS servers of your co.cc domain to ns1.heliohost.org and ns2.heliohost.org.
  2. Thank you for attention to my problem. I am on Heliohost (kuloto.heliohost.org) /home1/kuloto/
  3. Ok. But is it actually impossible to switch between Python versions? On this page are listed Python 2.4, 2.7 and 3.2. Why? PS: I use WSGI and Django.
  4. Hello! I have noticed that you update Python version from 2.4 to 2.7. It's really cool but some my pages use PIL library which not aviable now, so they don't work. Are going to install PIL for Python 2.7 too? Or how can I use the old version 2.4?
  5. Hello again. After long attemptions to refit .htaccess solution proved to be nicely simple. The only thing to do is to remove or comment this line in dispatch.wsgi: environ['PATH_INFO'] = environ['SCRIPT_NAME'] + environ['PATH_INFO'] dispatch.wsgi: import os, sys sys.path.append("/home1/kuloto/public_html/cartoons/"); os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' os.environ['PYTHON_EGG_CACHE'] = '/home1/kuloto/.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'] #line to delete return _application(environ, start_response) It prevents adding /project_dir/dispatch.wsgi into requests to your Django program. I don't know who did add this in the script, but I'm asking admins to remove it on this page.
  6. to jje: Yes, Heliohost offers Django:) to byron: Thank you, but Django itself works, I have small working app with Django templates and other here, but happens something strange with inclusion of dispather file name in address. I've tried you project too with same effect (under adding some url patterns) So, I will try to read more about redirections somewhere.
  7. Hello, I have faced some problem with url transformations. I've configured my Django project at kuloto.heliohost.org/cartoons/ but Django gives an error as if it gets 'dispatch.wsgi' in its requests: Request Method: GET Request URL: http://kuloto.heliohost.org/cartoons/dispatch.wsgi/ Using the URLconf defined in urls, Django tried these URL patterns, in this order: ^cartoons/$ ^cartoons/gravity/$ ^cartoons/gravity/history/$ ^cartoons/gravity/([0-9.]{1,5})/$ The current URL, cartoons/dispatch.wsgi/, didn't match any of these. I tried to change patterns directly in my Django project to ^cartoons/dispatch.wsgi/gravity/$ ^cartoons/dispatch.wsgi/gravity/history/$ and so on and it begun to work but it is not good solution because all requests without trailing slash like cartoons/gravity transforms to cartoons/dispatch.wsgi/gravity/ It probably happens because Django automatically completes requests with slash. And as a result many links dont work. So my question how to configure .htaccess or whatever to avoid this behavior? .htaccess content is standard: RewriteEngine On RewriteBase / RewriteRule ^(media/.*)$ - [L] RewriteRule ^(files/.*)$ - [L] RewriteRule ^(admin_media/.*)$ - [L] RewriteRule ^(dispatch\.wsgi/.*)$ - [L] RewriteRule ^(.*)$ cartoons/dispatch.wsgi/$1 [QSA,PT,L]
×
×
  • Create New...