Checking Django and setting permissions
To make sure that Django is working and producing Web pages,
try going to the URL: pc110.cs.ucdavis.edu:10000/django
(where 10000 is your 5-digit number).
You should see a 404 page talking about django. If instead
you get a 500 server error page, some permission is wrong somewhere.
Let's run through the following drill. Start in directory
/var/www/yourname (where yourname is your login name).
- chmod 770 -R mysite
- change line 4 of /var/www/yourname/mysite/mysite/apache/django.wsgi to "path = '/var/www/yourname/mysite' (take off the last slash)
- cd /var/www/yourname/mysite
- python manage.py collectstatic
- chmod 770 -R mysite
- rm db.sqlite3 - NOTE: this deletes stuff in your database, if you have any. Best to do this before beginning.
- touch db.sqlite3
- python manage.py syncdb
- chmod 770 db.sqlite3