I'm trying to deploy my django app which is working locally. However, I'm getting an internal server error in my webfaction deployment. I'm thinking this is a pythonpath problem since I don't get this error on my local installation?
This is what I get in my django log:
It seems that there is a problem with the "tagging" app. The tagging app is in my django folder though, and it includes managers.py.
I'm thinking this might be a pythonpath problem since the app works locally? How should I change my pythonpath to add the apps that are inside my django/mydjangoapp folder?
Thanks for any help.
asked Dec 29 '10 at 14:55
The problem was that my project wasn't in my pythonpath. I had to add it myself.
There are several ways to do this. You can read about all of the different ways here: http://docs.webfaction.com/software/python.html#importerror
What I did was add the path to my app into the "myproject.wsgi" file:
Open /home/username/webapps/djangoapp/myproject/myproject.wsgi If there is no line such as
Add it in there.
You can add more paths of course as well, check out the documentation link for more info.
answered Jan 05 '11 at 04:22
Try the following:
Replace myproject with the name of your django project. If that doesn't fix it, feel free to open a support ticket and we can take a look at your application.
answered Dec 29 '10 at 14:58