Opened 10 years ago

Closed 10 years ago

#23648 closed Uncategorized (invalid)

Documentation suggestion from new Django student.

Reported by: kielhorn Owned by: nobody
Component: Documentation Version: 1.7
Severity: Normal Keywords: tutorial settings.py
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

I am new to Django. I suggest the following change to the tutorial. I was confused by the use of the word 'default', which I think should be removed. Please see below. My confusion led to errors when executing 'python manage.py migrate'
Thanks.

Documentation version: 1.7

Section: Writing your first Django app, part 1

Subsection: Database setup

paragraph-2:

"By default, the configuration uses SQLite."

--- The above line is confusing. It suggests

that by doing nothing to settings.py the
sqlite3 database will be used, when actually
'ENGINE' must be set to django.db.backends.sqlite3
and 'NAME' must be set to something.

My suggested wording for this paragraph is:

" The simplest database to use is SQLite.

If you're new to databases, or you're just interested in trying Django,
this is the easiest choice. SQLite is included in Python,
so you won't need to install anything else to support your database.
To specify SQLite, you must edit settings.py and set 'ENGINE' to
'django.db.backends.sqlite3'. You must also set 'NAME' to some value,
for example, 'myName'."

Change History (2)

comment:1 by Collin Anderson, 10 years ago

Since version 1.6, new projects created by the default startproject template have ENGINE set to 'django.db.backends.sqlite3' in their settings.py. By doing nothing to settings.py the sqlite3 database will be used.

Last edited 10 years ago by Collin Anderson (previous) (diff)

comment:2 by Baptiste Mispelon, 10 years ago

Resolution: invalid
Status: newclosed

Hello and welcome to Django!

As Collin mentionned, starting from the version 1.6 of Django, the settings file for new projects contains a fully functional setup of sqlite out of the box.

Therefore I think the documentation is correct so I'm going to mark this ticket as invalid.
If you think we've misunderstood your point, feel free to reopen this ticket.

Thanks for your insight.

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