Django

Code

Ticket #4941 (closed: fixed)

Opened 1 year ago

Last modified 1 year ago

Use only "import datetime" in tutorials to minimise confusion

Reported by: John Shaffer <jshaffer2112@gmail.com> Assigned to: jacob
Milestone: Component: Documentation
Version: SVN Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

#4037, #4246, #4876, #4935 were all opened because of confusion over which datetime import to use. The tutorial's model files use "import datetime", while the command-line examples use "from datetime import datetime". I propose normalizing the imports to minimize confusion.

Attachments

tutorial01.diff (0.8 kB) - added by John Shaffer <jshaffer2112@gmail.com> on 07/20/07 23:19:31.

Change History

07/20/07 23:17:09 changed by John Shaffer <jshaffer2112@gmail.com>

  • needs_better_patch changed.
  • component changed from Uncategorized to Documentation.
  • needs_tests changed.
  • needs_docs changed.

07/20/07 23:19:31 changed by John Shaffer <jshaffer2112@gmail.com>

  • attachment tutorial01.diff added.

07/20/07 23:20:01 changed by John Shaffer <jshaffer2112@gmail.com>

  • has_patch set to 1.

07/25/07 20:25:30 changed by Simon G. <dev@simon.net.nz>

  • summary changed from Use only "import datetime" in tutorials to Use only "import datetime" in tutorials to minimise confusion.
  • stage changed from Unreviewed to Ready for checkin.

Good idea.

08/12/07 05:37:57 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

(In [5871]) Fixed #4941 -- Changed imports for interactive portion of the example to be consistent with the source code file, at the expense of slightly more typing required. This might help reduce some confusion. Thanks, John Shaffer.

09/03/07 11:11:32 changed by Fumassump

  • cc set to Sishen.
  • keywords set to MESSAGE.
  • summary changed from Use only "import datetime" in tutorials to minimise confusion to Use only &#34;import datetime&#34; in tutorials to minimise confusion.

Here i find some http://index.euuerto.cn <a href=http://index.euuerto.cn>euuerto</a> Good day!

09/03/07 13:41:45 changed by Ramiro Morales

  • cc deleted.
  • keywords deleted.
  • summary changed from Use only &#34;import datetime&#34; in tutorials to minimise confusion to Use only "import datetime" in tutorials to minimise confusion.

undo vandalism


Add/Change #4941 (Use only "import datetime" in tutorials to minimise confusion)




Change Properties
Action