Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #9920 - Clarfied empty string vs. localhost in settings databas…

…e host.

Thanks chromano for the draft patch.
  • Loading branch information...
commit f7142b6111fef01c2b1a4a37219c3dfbfdea2dc2 1 parent e376558
@timgraham timgraham authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 django/conf/project_template/project_name/settings.py
View
9 django/conf/project_template/project_name/settings.py
@@ -13,10 +13,11 @@
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': '', # Or path to database file if using sqlite3.
- 'USER': '', # Not used with sqlite3.
- 'PASSWORD': '', # Not used with sqlite3.
- 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
- 'PORT': '', # Set to empty string for default. Not used with sqlite3.
+ # The following settings are not used with sqlite3:
+ 'USER': '',
+ 'PASSWORD': '',
+ 'HOST': '', # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
+ 'PORT': '', # Set to empty string for default.
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.