Hi, 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 29 Dec '10, 14:55 Rrr8 |
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 05 Jan '11, 04:22 Rrr8 |
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 29 Dec '10, 14:58 aaronh ♦♦ Hi, thank you for the fast reply. I tried this, but now it's giving the same error for "tagging.models". So it seems the "tagging" app doesn't work at all. I'll try to figure it out and open a support ticket if I can't get it working.
(29 Dec '10, 15:11)
Rrr8
You might need to put myproject before tagging every time you import it. If you can't get it working, we'll be happy to help you if you open a support ticket.
(29 Dec '10, 15:47)
aaronh ♦♦
|