fengshaun Posted October 2, 2011 Posted October 2, 2011 Hi all, I'm having difficulty running a test django application. I have called my application heliotest and put it under public_html. Inside the heliotest directory, there are the project files alongside dispatch.wsgi and .htaccess as instructed by http://www.heliohost.org/home/features/languages/python. However, when I go to my website's root url (bmarks.co.cc/) it shows the public_html directory, and when I click on heliotest, it gives me an ImportError: ImportError at /heliotest/dispatch.wsgi/ No module named heliotest.urls Request Method: GET Request URL: http://bmarks.co.cc/heliotest/dispatch.wsgi/ How can I fix this issue and get my app working? Thanks, user: fengshau url: http://bmarks.co.cc/ Quote
Guest xaav Posted October 2, 2011 Posted October 2, 2011 Add /home/fengshau/public_html/ to your python path. Quote
fengshaun Posted October 3, 2011 Author Posted October 3, 2011 Add /home/fengshau/public_html/ to your python path. Thanks, that did the trick! I thought I had to add /home/fengshau/public_html/heliotest to python path! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.