#9920: Empty string is not the same as typing "localhost" in DATABASE_HOST in
settings.py
---------------------------------------------+------------------------------
 Reporter:  crazy2k                          |       Owner:  nobody    
   Status:  new                              |   Milestone:            
Component:  Uncategorized                    |     Version:  1.0       
 Keywords:  postgresql host localhost empty  |       Stage:  Unreviewed
Has_patch:  0                                |  
---------------------------------------------+------------------------------
 I was reading Django's book (http://www.djangobook.com/). At Chapter 5,
 you start playing a little with the database server. I chose PostgreSQL,
 and I filled the settings accordingly. However, when I tried:
 {{{
 >>> from django.db import connection
 >>> cursor = connection.cursor()
 }}}

 (after running ''python manage.py shell'')
 I got an error.

 I had left the DATABASE_HOST setting blank in settings.py, because it
 says:
 DATABASE_HOST = ''             # Set to empty string for localhost. Not
 used with sqlite3.

 I made it work by explictly adding "localhost" there.

 The version of Django I've installed is 1.0-1ubuntu1.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9920>
Django <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to