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/
Guest xaav Posted October 2, 2011 Posted October 2, 2011 Add /home/fengshau/public_html/ to your python path.
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!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now