Django
Revision as of 13:52, 9 April 2013 by Michael Murtaugh (talk | contribs)
Installing your django apps on Piet Zwart 3
Ensure that you have a folder called "django" in your home folder (ie /home/YOURUSERNAME/django/).
1. Copy your Django project (say it's called DJPROJECT) into that folder (ie /home/YOURUSERNAME/django/DJPROJECT/).
2. Create a "wsgi" file and name it DJPROJECT.wsgi and put it in the django folder (ie /home/YOURUSERNAME/django/DJPROJECT.wsgi) Inside the file should be like:
import os, sys
sys.path.append("/home/YOURUSERNAME/django/")
sys.path.append("/home/YOURUSERNAME/django/DJPROJECT/")
os.environ['DJANGO_SETTINGS_MODULE'] = 'DJPROJECT.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
Replacing YOURUSERNAME & DJPROJECTNAME with your username & the django project name!
That should be it! To view the project/app, go to: