Opened 19 years ago

Closed 19 years ago

Last modified 17 years ago

#147 closed defect (fixed)

"sqlite" should be "sqlite3" in conf/project_template/settings/main.py

Reported by: rmunn@… Owned by: Adrian Holovaty
Component: contrib.admin Version:
Severity: normal Keywords:
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Problem: new users are just going to copy the suggested "sqlite" in settings/main.py and find that it doesn't work.

Solution: Use "sqlite3" throughout. Apply the following patch.

Index: django/conf/project_template/settings/main.py
===================================================================
--- django/conf/project_template/settings/main.py       (revision 288)
+++ django/conf/project_template/settings/main.py       (working copy)
@@ -10,11 +10,11 @@

 LANGUAGE_CODE = 'en-us'

-DATABASE_ENGINE = 'postgresql' # 'postgresql', 'mysql', or 'sqlite'
-DATABASE_NAME = ''             # or path to database file if using sqlite
-DATABASE_USER = ''             # not used with sqlite
-DATABASE_PASSWORD = ''         # not used with sqlite
-DATABASE_HOST = ''             # Set to empty string for localhost; not used with sqlite
+DATABASE_ENGINE = 'postgresql' # 'postgresql', 'mysql', or 'sqlite3'
+DATABASE_NAME = ''             # or path to database file if using sqlite3
+DATABASE_USER = ''             # not used with sqlite3
+DATABASE_PASSWORD = ''         # not used with sqlite3
+DATABASE_HOST = ''             # Set to empty string for localhost; not used with sqlite3

 SITE_ID = 1

Change History (2)

comment:1 by Adrian Holovaty, 19 years ago

Status: newassigned

comment:2 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: assignedclosed

(In [289]) Fixed #147 -- Thanks, Robin Munn!

Note: See TracTickets for help on using tickets.
Back to Top