how about this
http://stackoverflow.com/a/19426770/861487

Le vendredi 14 novembre 2014 18:10:41 UTC+1, Daniel Grace a écrit :
>
> Hi,
> I get an error when running the test command:
> >python manage.py test flow
>
> Creating test database for alias 'default'...
> Traceback (most recent call last):
>   File "C:\landy\lib\site-packages\django\db\backends\__init__.py", line 
> 133, in
>  ensure_connection
>     self.connect()
>   File "C:\landy\lib\site-packages\django\db\backends\__init__.py", line 
> 122, in
>  connect
>     self.connection = self.get_new_connection(conn_params)
>   File 
> "C:\landy\lib\site-packages\django\db\backends\postgresql_psycopg2\base.p
> y", line 134, in get_new_connection
>     return Database.connect(**conn_params)
>   File "C:\landy\lib\site-packages\psycopg2\__init__.py", line 164, in 
> connect
>     conn = _connect(dsn, connection_factory=connection_factory, 
> async=async)
> psycopg2.OperationalError: FATAL:  database "postgres" does not exist
>
> Here is the database settings:
> DATABASES = {
>     'default': {
>         'ENGINE': 'django.db.backends.postgresql_psycopg2',
>         'NAME': 'cresta',                      
>         'USER': 'postgres',
>         'PASSWORD': 'test1234',
>         'HOST': '',
>         'ATOMIC_REQUESTS': True
>     }
> }
>
> I don't get any errors when manually testing.  What is going on?
>
> Thanks
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/b37fd162-b6d0-41da-9dc0-ff6e6d7ffa62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to