Jump to content

Internal Server Error(500) - Django Application


ovt00

Recommended Posts

I've moved this here hoping that someone else can answer this. I do know it works since I've seen others use it, but I'm a PHP programmer and just don't know how to set it up.

 

From what I've seen though, it is one of the more difficult things to make work here.

Link to comment
Share on other sites

Did you set the permissions on the the folder named .python_egg_cache in your home directory to 777?

 

If that's not your problem, I can give you a working example of Django and you can go from there.

 

http://area52.heliohost.org/djangotest.zip

 

Unzip the file on your site and then edit the file djangotest/dispatch.wsgi like below:

 

sys.path.append("/home/ovt00/public_html/djangotest");

os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
os.environ['PYTHON_EGG_CACHE'] = '/home/ovt00/.python_egg_cache'

 

And it should work like this: http://area52.heliohost.org/djangotest/dispatch.wsgi

 

 

Link to comment
Share on other sites

Thank you very much, example works, but .htaccess need put in the home directory( /home/ovt00/public_html ) and directory of project(/home/ovt00/public_html/djiangotest) and that I don't understand why. Next, default version of python is 2.7.1 and django is 1.3? How can I choice another python version?

Link to comment
Share on other sites

Do not bump posts.

 

I'm not sure what features you refer to, but if it's a system-wide Administration function, it's likely disabled intentionally. If it's part of your program, your paths are likely wrong. (If you're working on Byron's demo, I wouldn't be surprised if the files are just missing since its a demo). As for python version, change your shebang line to specify the version you need:

 

Python versions and paths below are for Stevie users:

  • /usr/local/bin/python2.7
  • /usr/local/bin/python2.4
  • /usr/local/bin/python3.2

 

You would get better help with django itself on a programming board as opposed to here. Though we support other languages, most of us are PHP programmers. Also, have you considered developing in PHP instead? You'll find it a lot easier to get a PHP program running on our servers than a django/python one.

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