Jump to content

Python/django Project Not Working


vaibhav8

Recommended Posts

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 ...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...