Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#147 closed defect (fixed)

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

Reported by: rmunn@… Owned by: adrian
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: UI/UX:

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 Changed 10 years ago by adrian

  • Status changed from new to assigned

comment:2 Changed 10 years ago by adrian

  • Resolution set to fixed
  • Status changed from assigned to closed

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

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