Hi, I am experiencing an issue similar to what's being discussed in this post - http://community.webfaction.com/questions/3249/django-import-error Basically, my references are like from Cars.models import Car and this is giving an import error. I know i could add the project name to the start but that's a bit of work at this stage. I tried modifying the httpd.conf file by adding in the below but it's not working (still getting an import error) WSGIPythonPath /home/grimmus/webapps/coleborns/coleborns/ Any ideas ? Thanks asked 05 Mar '12, 05:48 Grimmus |
To fix ImportErrors you need to add your project to the PYTHONPATH. The easiest way to do this is to add the sys.path to your wsgi file, for example:
Once you add the above, be sure to restart your Django project. answered 05 Mar '12, 08:13 timg ♦♦ |