Django

Code

Ticket #4818 (closed: fixed)

Opened 1 year ago

Last modified 1 year ago

Databrowse - missing step?

Reported by: kevin@berndtgroup.net Assigned to: adrian
Milestone: Component: django.contrib.databrowse
Version: SVN Keywords: databrowse
Cc: Triage Stage: Design decision needed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

First, THANK YOU, THANK YOU -- I love Django!

Step 2. READS: from django.contrib import databrowse

databrowse.site.register(SomeModel?) databrowse.site.register(SomeOtherModel?)

I think instead of: from django.contrib import databrowse

maybe it should read: from someapp.models import *

Where 'someapp' is the name of the application. The documentation includes in step 3. the directive: from django.contrib import databrowse

Attachments

Change History

(follow-up: ↓ 2 ) 07/09/07 22:37:53 changed by SmileyChris

  • needs_better_patch changed.
  • stage changed from Unreviewed to Design decision needed.
  • needs_tests changed.
  • needs_docs changed.

It's still important to import databrowse in step two, but perhaps it could read:

from django.contrib import databrowse
from myapp.models import SomeModel, SomeOtherModel

databrowse.site.register(SomeModel)
databrowse.site.register(SomeOtherModel)

I'm unsure if it's really necessary though.

(in reply to: ↑ 1 ) 07/12/07 01:51:29 changed by miguel.filho@gmail.com

I think it's nice this way.

08/11/07 22:59:11 changed by adrian

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

(In [5866]) Fixed #4818 -- Improved 'Step 2' example in docs/databrowse.txt. Thanks, kevin@berndtgroup.net


Add/Change #4818 (Databrowse - missing step?)




Change Properties
Action