1
0
mirror of https://github.com/django/django.git synced 2025-03-13 10:50:55 +00:00
django/tests/view_tests/regression_21530_urls.py
Baptiste Mispelon 5a4884a978 [1.6.x] Fixed #21530 -- Prevent AttributeError in default URLconf detection code.
Thanks to @dmyerscoug for the report and original patch
and to @alasdairnicol for the added tests.

Backport of a020dd0a99da13d0f024d42c46f01d8f503e9d5e from master.
2013-12-07 03:30:07 +01:00

6 lines
140 B
Python

from django.conf.urls import patterns, url
urlpatterns = patterns('',
url(r'^index/$', 'view_tests.views.index_page', name='index'),
)