Error in the heroku/django tutorial raise ImproperlyConfigured("You need to specify NAME in your Django settings file.") django.core.exceptions.Imprope rlyConfigured: You need to specify NAME in your Django settings file.
Subject: Error in the heroku/django tutorial raise ImproperlyConfigured("You need to specify NAME in your Django settings file.") django.core.exceptions.ImproperlyConfigu red: You need to specify NAME in your Django settings file.
heroku run python manage.py syncdb after the part of adding in
Procefile
celeryd: python manage.py celeryd -E -B --loglevel=INFO
i get the next error:
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/yeinhorn/heyron/venv/local/lib/python2.7/site-packages/
django/core/management/__init__.py", line 443, in
execute_from_command_line
utility.execute()
File "/home/yeinhorn/heyron/venv/local/lib/python2.7/site-packages/
django/core/management/__init__.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/yeinhorn/heyron/venv/local/lib/python2.7/site-packages/
django/core/management/base.py", line 196, in run_from_argv
self.execute(*args, **options.__dict__)
File "/home/yeinhorn/heyron/venv/local/lib/python2.7/site-packages/
django/core/management/base.py", line 232, in execute
output = self.handle(*args, **options)
File "/home/yeinhorn/heyron/venv/local/lib/python2.7/site-packages/
django/core/management/base.py", line 371, in handle
return self.handle_noargs(**options)
File "/home/yeinhorn/heyron/venv/local/lib/python2.7/site-packages/
django/core/management/commands/syncdb.py", line 57, in handle_noargs
cursor = connection.cursor()
File "/home/yeinhorn/heyron/venv/local/lib/python2.7/site-packages/
django/db/backends/__init__.py", line 306, in cursor
cursor = self.make_debug_cursor(self._cursor())
File "/home/yeinhorn/heyron/venv/local/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.
i have no idea why, i followed the tutorial but it still fails.
i don't know how to solve it, please help!
Subject: Re: Error in the heroku/django tutorial raise ImproperlyConfigured("You need to specify NAME in your Django settings file.") django.core.exceptions.ImproperlyConfigu red: You need to specify NAME in your Django settings file.
> heroku run python manage.py syncdb after the part of adding in > Procefile > celeryd: python manage.py celeryd -E -B --loglevel=INFO
> i get the next error: > File "manage.py", line 10, in <module> > execute_from_command_line(sys.argv) > File "/home/yeinhorn/heyron/venv/local/lib/python2.7/site-packages/ > django/core/management/__init__.py", line 443, in > execute_from_command_line
> utility.execute() > File "/home/yeinhorn/heyron/venv/local/lib/python2.7/site-packages/ > django/core/management/__init__.py", line 382, in execute > self.fetch_command(subcommand).run_from_argv(self.argv)
> File "/home/yeinhorn/heyron/venv/local/lib/python2.7/site-packages/ > django/core/management/base.py", line 196, in run_from_argv > self.execute(*args, **options.__dict__) > File "/home/yeinhorn/heyron/venv/local/lib/python2.7/site-packages/ > django/core/management/base.py", line 232, in execute
> output = self.handle(*args, **options) > File "/home/yeinhorn/heyron/venv/local/lib/python2.7/site-packages/ > django/core/management/base.py", line 371, in handle > return self.handle_noargs(**options)
> File "/home/yeinhorn/heyron/venv/local/lib/python2.7/site-packages/ > django/core/management/commands/syncdb.py", line 57, in handle_noargs > cursor = connection.cursor() > File "/home/yeinhorn/heyron/venv/local/lib/python2.7/site-packages/ > django/db/backends/__init__.py", line 306, in cursor
> cursor = self.make_debug_cursor(self._cursor()) > File "/home/yeinhorn/heyron/venv/local/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.
> i have no idea why, i followed the tutorial but it still fails. > i don't know how to solve it, please help!
Subject: Re: Error in the heroku/django tutorial raise ImproperlyConfigured("You need to specify NAME in your Django settings file.") django.core.exceptions.ImproperlyConfigu red: You need to specify NAME in your Django settings file.
This means that Django doesn't have a database name configured. The dj_database_url module gets all of the configuration information from an environment variable called DATABASE_URL. You need to make sure that it is set properly.
>> heroku run python manage.py syncdb after the part of adding in >> Procefile >> celeryd: python manage.py celeryd -E -B --loglevel=INFO
>> i get the next error: >> File "manage.py", line 10, in <module> >> execute_from_command_line(sys.argv) >> File "/home/yeinhorn/heyron/venv/local/lib/python2.7/site-packages/ >> django/core/management/__init__.py", line 443, in >> execute_from_command_line
>> utility.execute() >> File "/home/yeinhorn/heyron/venv/local/lib/python2.7/site-packages/ >> django/core/management/__init__.py", line 382, in execute >> self.fetch_command(subcommand).run_from_argv(self.argv)
>> File "/home/yeinhorn/heyron/venv/local/lib/python2.7/site-packages/ >> django/core/management/base.py", line 196, in run_from_argv >> self.execute(*args, **options.__dict__) >> File "/home/yeinhorn/heyron/venv/local/lib/python2.7/site-packages/ >> django/core/management/base.py", line 232, in execute
>> output = self.handle(*args, **options) >> File "/home/yeinhorn/heyron/venv/local/lib/python2.7/site-packages/ >> django/core/management/base.py", line 371, in handle >> return self.handle_noargs(**options)
>> File "/home/yeinhorn/heyron/venv/local/lib/python2.7/site-packages/ >> django/core/management/commands/syncdb.py", line 57, in handle_noargs >> cursor = connection.cursor() >> File "/home/yeinhorn/heyron/venv/local/lib/python2.7/site-packages/ >> django/db/backends/__init__.py", line 306, in cursor
>> cursor = self.make_debug_cursor(self._cursor()) >> File "/home/yeinhorn/heyron/venv/local/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.
>> i have no idea why, i followed the tutorial but it still fails. >> i don't know how to solve it, please help!
Subject: Re: Error in the heroku/django tutorial raise ImproperlyConfigured("You need to specify NAME in your Django settings file.") django.core.exceptions.ImproperlyConfigu red: You need to specify NAME in your Django settings file.