I'm wondering the same thing myself! Did you find a solution?
On Monday, June 4, 2012 9:29:09 PM UTC-7, Joshua Jenkins wrote: > > Hi all, > > I'm brand new to Heroku, but have used Django plenty. I'm decent at > writing apps but terrible at setting up servers and databases, hence the > draw to Heroku. > > I'm following this dev center article exactly, trying to get a barebones > project up and running: https://devcenter.heroku.com/articles/django > > On the database step, after I've added this to my settings file: > > import dj_database_url >> >> >>> DATABASES = {'default': >>> dj_database_url.config(default='postgres://localhost')} >> >> > and running syncdb locally, I get this error: > > (venv)CRO:ooo dev$ python manage.py syncdb > > Traceback (most recent call last): > > File "manage.py", line 10, in <module> > > execute_from_command_line(sys.argv) > > File >> "/Users/dev/Desktop/ooo/venv/lib/python2.7/site-packages/django/core/management/__init__.py", >> >> line 443, in execute_from_command_line > > utility.execute() > > File >> "/Users/dev/Desktop/ooo/venv/lib/python2.7/site-packages/django/core/management/__init__.py", >> >> line 382, in execute > > self.fetch_command(subcommand).run_from_argv(self.argv) > > File >> "/Users/dev/Desktop/ooo/venv/lib/python2.7/site-packages/django/core/management/base.py", >> >> line 196, in run_from_argv > > self.execute(*args, **options.__dict__) > > File >> "/Users/dev/Desktop/ooo/venv/lib/python2.7/site-packages/django/core/management/base.py", >> >> line 232, in execute > > output = self.handle(*args, **options) > > File >> "/Users/dev/Desktop/ooo/venv/lib/python2.7/site-packages/django/core/management/base.py", >> >> line 371, in handle > > return self.handle_noargs(**options) > > File >> "/Users/dev/Desktop/ooo/venv/lib/python2.7/site-packages/django/core/management/commands/syncdb.py", >> >> line 57, in handle_noargs > > cursor = connection.cursor() > > File >> "/Users/dev/Desktop/ooo/venv/lib/python2.7/site-packages/django/db/backends/__init__.py", >> >> line 306, in cursor > > cursor = self.make_debug_cursor(self._cursor()) > > File >> "/Users/dev/Desktop/ooo/venv/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py", >> >> line 162, in _cursor > > raise ImproperlyConfigured("You need to specify NAME in your Django >> settings file.") > > django.core.exceptions.ImproperlyConfigured: You need to specify NAME in >> your Django settings file. > > > > > The article leads me to believe that I don't need to do any configuration, > that dj_database_url will take care of everything. In fact my heroku config > lists what I assume are the correct vars, so I assume it should all come > from there > > DATABASE_URL: postgres:// >>> aaaa:[email protected]/aaaaa >> >> LANG: en_US.UTF-8 >> >> LD_LIBRARY_PATH: /app/.heroku/vendor/lib >> >> LIBRARY_PATH: /app/.heroku/vendor/lib >> >> PATH: /app/.heroku/venv/bin:/bin:/usr/local/bin:/usr/bin >> >> PYTHONHASHSEED: random >> >> PYTHONHOME: /app/.heroku/venv/ >> >> PYTHONPATH: /app/ >> >> PYTHONUNBUFFERED: true >> >> SHARED_DATABASE_URL: postgres:// >>> aaaaa:[email protected]/aaaaa >> >> > So, as someone that doesn't really understand servers or databases I feel > stuck and have googled many many times to no avail. > > Any help is very much appreciated. > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/heroku?hl=en_US?hl=en
