id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 24594 urlpatterns as list breaks template code stephanm nobody "According to https://docs.djangoproject.com/en/1.8/releases/1.8/#django-conf-urls-patterns I switched a working project from {{{#!py urlpatterns = patterns('', url(r'^$', 'myapp.views.index', name=""home""), ) }}} to {{{#!py urlpatterns = [ url(r'^$', myapp.views.index, name=""home""), ] }}} But now I get the exception: {{{ Exception Type: AttributeError Exception Value: 'list' object has no attribute 'regex' Exception Location: D:\Programme\python27\lib\site-packages\django\core\urlresolvers.py in _populate, line 298 }}} Because I have the following code snippet in my html template: {{{ {% url 'home' %} }}} ---- '''Another item:''' In my settings.py I have {{{#!py LOGIN_URL = ""/myapp/auth/login/"" }}} which breaks too. This one works (at least) if I change it to: {{{#!py LOGIN_URL = ""myapp.views.login"" }}} System: I use python 2.7.9 (32 bit) on Windows 7 64 bit." Uncategorized closed Uncategorized 1.8 Normal invalid Unreviewed 0 0 0 0 0 0