Jump to content

[Solved] Following "how Do I Use Django?" Resulting An 500 Internal Server Error


mbdungo

Recommended Posts

I guest I've followed How do I use Python/Django? perfectly, exept the sentence:

If it is your wish to develop on-site you will need to manually create a blank __init__.py file, a settings.py file, and a urls.py file.

And after that, after following the guide, my specified subdirectory is now have an 500 Internal Server Error..

 

Do I need to install the Django web development framework manually before it'll work?

Please help..

Link to comment
Share on other sites

Here's a zip file of a working example of django.

 

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

 

After you unzip the files, you'll see this file here: dispatch.wsgi

 

You'll need to edit these two lines to match your site plus create the directory mentioned:

 

import os, sys
sys.path.append("/home1/area52/public_html/djangotest");

### EDIT LINE ABOVE TO YOUR SITE ###

os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
os.environ['PYTHON_EGG_CACHE'] = '/home1/area52/.python_egg_cache'

### YOU NEED TO CREATE THE DIRECTORY ABOVE WITH PERMISSIONS 777 ###

 

If you've succeeded you'll see this: http://area52.heliohost.org/djangotest/

  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...