Jump to content

Recommended Posts

Posted

Dear HelioHost,

 

My username is - vaibhav1

My url is - www.gemsandu.com

 

I have project in django ... and i've upload it through ftp client on heliohost sever (as described on http://www.heliohost.org/home/features/languages/python)

 

but my url shows 500 Internal Server error...

 

I am showing u, what i've done...

 

my django project name is gemsandu

 

1) i've upload my django project under public_html dirctory

--> public_html/gemsandu

 

2) .python_egg_cache folder created parallel with public_html with 777 permission

 

3) dispatch.wsgi file under public_html/gemsandu/dispatch.wsgi with 755 permission

with this code --

 

 

import os, sys

 

sys.path.append("/home/vaibhav1/public_html/gemsandu");

 

os.environ['DJANGO_SETTINGS_MODULE'] = 'gemsandu.settings'

 

os.environ['PYTHON_EGG_CACHE'] = '/home/vaibhav1/.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)

 

 

4).htaccess file under public_html/gemsandu/.htaccess with 644 permission

with this code --

 

 

RewriteEngine On

RewriteBase /

RewriteRule ^(static/.*)$ - [L]

RewriteRule ^(sitestatic/.*)$ - [L]

RewriteRule ^(media/.*)$ - [L]

RewriteRule ^(admin_media/.*)$ - [L]

RewriteRule ^(dispatch\.wsgi/.*)$ - [L]

RewriteRule ^(.*)$ gemsandu/dispatch.wsgi/$1 [QSA,PT,L]

 

 

 

After doing all this thing my django project not working ...

 

Please help me out with this problem ...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...