Opened 10 years ago

Closed 10 years ago

#7605 closed (fixed)

Creating SQLite database instruction should be explicit

Reported by: pfctdayelise Owned by: nobody
Component: Documentation Version: master
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


At tutorial01 under "Database setup", it says "DATABASE_NAME — The name of your database, or the full (absolute) path to the database file if you’re using SQLite." Implicit seems to be the statement 'make up a file name here and when you run syncdb Django will create the sqlite database at that file name'. (ie, you don't need to use sqlite to create that database beforehand)

Having this statement explicit, maybe with an example file name (django.db? mysite.sql? sqlite.txt?) would be helpful.
I went through this page of the tutorial without putting a value in DATABASE_NAME and it had the effect of asking me to create a super user everytime I did 'python syncdb'. (As opposed to if you have a value there, you only get asked the first time)

Change History (2)

comment:1 Changed 10 years ago by Sung-jin Hong

Triage Stage: UnreviewedAccepted

comment:2 Changed 10 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed

(In [7917]) Fixed #7605 -- Added a note about SQLite database creation to Tutorial 1. Thanks to pfctdayelise for the suggestion.

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