Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#4272 closed (wontfix)

instructions incomplete

Reported by: Rogerpack2005@… Owned by: jacob
Component: Documentation Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

on http://www.djangoproject.com/documentation/tutorial02/
after changing the polls to be able to list '3 choices per poll' I had to restart the server to get it to work (it disappeared from admin view, but after restarting the server it worked). This step is noticeably missing. It may be due to the fact that I'm on windows I don't know.

Also one thing that perturbed me with the first page of the tutorial was that, when it told you to setup the DB, I didn't know how to write filenames appropriately to specify the sqlite db filename. I would suggest maybe editing the line in settings.py of "DATABASE_NAME" to say "write it this way for windows c:/db_dir/db" or what not--otherwise nice work.

Change History (5)

comment:1 Changed 8 years ago by SmileyChris

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to fixed
  • Status changed from new to closed

Usually the first error is probably due to you saving an unfinished model which causes the development server to drop the model which is erroring.

Regarding your suggestion about writing Windows paths with forward slashes, this method is mentioned in other places in the settings.py file, I'm not sure it needs to be mentioned here again.

On a side note, you can use Windows backslashes either by escaping them: 'c:\\db_dir\\db' or by marking the string as raw: r'c:\db_dir\db' (although you run into the ugly caveat that if the string ends in a backslash, you still need to escape it)

comment:2 Changed 8 years ago by SmileyChris

  • Resolution fixed deleted
  • Status changed from closed to reopened

Meant to close as invalid

comment:3 Changed 8 years ago by SmileyChris

  • Resolution set to wontfix
  • Status changed from reopened to closed

Or wontfix even

comment:4 Changed 8 years ago by rogerpack2005@…

This is the "topmost" location that a patch is specified, so it might be nice to mention windows pathnames here for newbies like myself. Thanks!

comment:5 Changed 8 years ago by roger

it would be nice if, when the dev server encounters and error and drops a field it outputs some type of warning or something instead of silently dropping it. Leaves newbies like me confused. Thanks!

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