#13563 closed (fixed)
geodjango tutorial broken for 1.2.x
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 , 15 years ago
Component: | GIS → Documentation |
---|---|
milestone: | 1.2 → 1.3 |
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
The pattern should actually be:
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.