Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#13563 closed (fixed)

geodjango tutorial broken for 1.2.x

Reported by: TerryBrown <terry_n_brown@…> Owned by: nobody
Component: Documentation Version: 1.2
Severity: Keywords: geodjango urls.py tutorial
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The geodjango tutorial at http://docs.djangoproject.com/en/dev/ref/contrib/gis/tutorial/ says urls.py should read

...
urlpatterns = patterns('',
                       (r'^admin/(.*)', include(admin.site.urls)),
                       )

but that doesn't work for 1.2.1, whereas

...
urlpatterns = patterns('',
                       (r'^admin/(.*)', admin.site.root),
                       )

does.

Change History (3)

comment:1 by Karen Tracey, 14 years ago

Component: GISDocumentation
milestone: 1.21.3
Triage Stage: UnreviewedAccepted

The pattern should actually be:

    (r'^admin/', include(admin.site.urls)),

The admin.site.root form is older and on its way to being deprecated. What's currently in the tutorial is an invalid mixture of the older and newer recommended patterns.

comment:2 by Jacob, 14 years ago

Resolution: fixed
Status: newclosed

(In [13293]) Fixed #13563, a typo in the GeoDjango tutorial.

comment:3 by Jacob, 13 years ago

milestone: 1.3

Milestone 1.3 deleted

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