#26893: Database creation failed using PostGis and Django
--------------------------+--------------------------------------
     Reporter:  csurbier  |                    Owner:  nobody
         Type:  Bug       |                   Status:  closed
    Component:  GIS       |                  Version:  1.8
     Severity:  Normal    |               Resolution:  worksforme
     Keywords:            |             Triage Stage:  Unreviewed
    Has patch:  0         |      Needs documentation:  0
  Needs tests:  0         |  Patch needs improvement:  0
Easy pickings:  0         |                    UI/UX:  0
--------------------------+--------------------------------------

Comment (by claudep):

 You can run migrations fine, you just have to run the "CREATE
 DATABASE"/"CREATE EXTENSION" commands first.

 As you didn't provide any traceback, I cannot tell you much about the
 reason of the failing connection, but at some point, if Django has to talk
 to PostgreSQL without having to specify a database, it defaults to the
 `postgres` database (which is generally readable by all users in most
 setups), typically in a situation when it has to create a database, hence
 my recommendation to create it yourself beforehand.

--
Ticket URL: <https://code.djangoproject.com/ticket/26893#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.7312f30457602b96b72b25a7d4b3a85a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to