Tuesday, June 24, 2014

Copied django project to shared host from repo - can't import settings

Hello,

I setup Django successfully on my shared Bluehost account following the tutorial below: http://www.nyayapati.com/srao/2012/08/setup-python-2-7-and-django-1-4-on-bluehost/

I am now having problems with a Django project I have copied from a GitHub repo to my Bluehost directory. I am getting this error when I run python mysite.fcgi in my virtualenv

go-1.5.1-py2.7.egg/django/conf/__init__.py", line 134, in __init__      raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))  ImportError: Could not import settings 'mysite.settings' (Is it on sys.path?): No module named settings

Any thoughts on where to look for errors? I have checked .htaccess and the mysite.fcgi file in my www directory, the pointer to settings in my manage.py and these seem as they should be. Running python manage.py runserver on the project says there are no errors.

Lee

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/595e7cff-5af9-4c63-a052-41d3ce472e30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment