Recurring Heroku syncdb problem
I've tried this with the current and the GSWD version 1.4.2 of Django multiple times and keep running into this error. I tried the ALLOWED_HOSTS on the later ver. of Django. I've poured over StackOverflow, posted this question there: http://stackoverflow.com/questions/19163521/importerror-when-i-heroku-run-python-manage-py-syncdb
and really just want to put a bow on the first lesson and move on.
File "/app/.heroku/python/lib/python2.7/site-packages/django/conf/init.py", line 95, in init raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e)) ImportError: Could not import settings 'microblog.settings' (Is it on sys.path?): No module named settings (blog-venv)vagrant@precise64:/vagrant/projects/microblog$ pip freeze Django==1.4.2 argparse==1.2.1 dj-database-url==0.2.2 psycopg2==2.5.1 wsgiref==0.1.2
/Users/myname/Lesson2/projects/microblog/microblog/settings/base.py I have a init.py in both folders, I've updated my wsgi.py
import os, sys
sys.path.append(' /Users/myname/Lesson2/projects/microblog/microblog') os.environ.setdefault("DJANGO_SETTINGS_MODULE", "microblog.settings") from django.core.wsgi import get_wsgi_application application = get_wsgi_application()