~ubuntu-branches/ubuntu/saucy/python-django/saucy-updates

« back to all changes in this revision

Viewing changes to tests/regressiontests/urlpatterns_reverse/urlconf_inner.py

  • Committer: Package Import Robot
  • Author(s): Luke Faraone, Jakub Wilk, Luke Faraone
  • Date: 2013-05-09 15:10:47 UTC
  • mfrom: (1.1.21) (4.4.27 sid)
  • Revision ID: package-import@ubuntu.com-20130509151047-aqv8d71oj9wvcv8c
Tags: 1.5.1-2
[ Jakub Wilk ]
* Use canonical URIs for Vcs-* fields.

[ Luke Faraone ]
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
from django.http import HttpResponse
4
4
 
5
5
def inner_view(request):
6
 
    content = Template('{% load url from future %}'
7
 
                       '{% url "outer" as outer_url %}outer:{{ outer_url }},'
 
6
    content = Template('{% url "outer" as outer_url %}outer:{{ outer_url }},'
8
7
                       '{% url "inner" as inner_url %}inner:{{ inner_url }}').render(Context())
9
8
    return HttpResponse(content)
10
9
 
11
10
urlpatterns = patterns('',
12
11
    url(r'^second_test/$', inner_view, name='inner'),
13
 
)
 
 
b'\\ No newline at end of file'
 
12
)