File: no_namespaced_urls.py

package info (click to toggle)
django-distill 3.2.7-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 316 kB
  • sloc: python: 2,144; makefile: 4
file content (24 lines) | stat: -rw-r--r-- 512 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from django.http import HttpResponse
from django_distill import distill_path


app_name = 'no-namespaced-urls'


def test_url_in_no_namespace_view(request):
    return HttpResponse(b'test', content_type='application/octet-stream')


def test_no_param_func():
    return None


urlpatterns = [

    distill_path('sub-url-in-no-namespace',
        test_url_in_no_namespace_view,
        name='test_url_in_no_namespace',
        distill_func=test_no_param_func,
        distill_file='test_url_in_no_namespace'),

]