Code

Opened 6 years ago

Closed 6 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:

Description

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 manage.py syncdb'. (As opposed to if you have a value there, you only get asked the first time)

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by serialx

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 6 years ago by russellm

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

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.