Django

Code

Ticket #7824 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

Missing information about autodiscover and admin.py in the tutorial and backwards incompatible page

Reported by: tome Assigned to: jacob
Milestone: 1.0 alpha Component: Uncategorized
Version: SVN Keywords:
Cc: Triage Stage: Accepted
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

From what I understand, using admin.py to specify admin related settings instead of entering it in models.py is the desired way in the new trunk version.

If this is the case, I suggest that the admin.austodiscover() should be explained in the tutorial.

Additionally, if this is the desired setup, maybe the autodiscover should be included but commented out in the urls.py for each project, or even be active if the admin site is imported.

Attachments

Change History

07/19/08 08:35:05 changed by Karen Tracey <kmtracey@gmail.com>

  • needs_better_patch changed.
  • needs_docs changed.
  • stage changed from Unreviewed to Accepted.
  • needs_tests changed.
  • milestone set to 1.0 alpha.

07/20/08 13:09:33 changed by brosner

(In [8009]) Added admin.autodiscover() to project template urls.py. It is left commented out intentionally. Thanks tome for the suggestion. Refs #7824.

07/21/08 10:11:25 changed by jacob

  • owner changed from nobody to jacob.
  • status changed from new to assigned.

07/21/08 12:10:27 changed by jacob

(In [8026]) Modified the comments in the skeleton urls.py to be more clear about how to enable the admin. Refs #7824.

07/21/08 12:10:34 changed by jacob

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

(In [8027]) Improved the bit of the tutorial that explains how to enable the admin. Fixes #7824.


Add/Change #7824 (Missing information about autodiscover and admin.py in the tutorial and backwards incompatible page)




Change Properties
Action