Opened 17 years ago

Closed 17 years ago

#4818 closed (fixed)

Databrowse - missing step?

Reported by: kevin@… Owned by: Adrian Holovaty
Component: contrib.databrowse Version: dev
Severity: Keywords: databrowse
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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

Change History (3)

comment:1 by Chris Beaven, 17 years ago

Triage Stage: UnreviewedDesign decision needed

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 comment:2 by miguel.filho@…, 17 years ago

I think it's nice this way.

comment:3 by Adrian Holovaty, 17 years ago

Resolution: fixed
Status: newclosed

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

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