PageRenderTime 24ms CodeModel.GetById 20ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/regressiontests/urlpatterns_reverse/urlconf_inner.py

https://code.google.com/p/mango-py/
Python | 13 lines | 11 code | 2 blank | 0 comment | 0 complexity | f6a096e53d7e0cf947a4213907cadc24 MD5 | raw file
 1from django.conf.urls.defaults import *
 2from django.template import Template, Context
 3from django.http import HttpResponse
 4
 5def inner_view(request):
 6    content = Template('{% load url from future %}'
 7                       '{% url "outer" as outer_url %}outer:{{ outer_url }},'
 8                       '{% url "inner" as inner_url %}inner:{{ inner_url }}').render(Context())
 9    return HttpResponse(content)
10
11urlpatterns = patterns('',
12    url(r'^second_test/$', inner_view, name='inner'),
13)