summaryrefslogtreecommitdiffstats
path: root/tests/urls_tests.py
blob: 62494e4276706fa775f5adbf2febb8d335985a36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import django

from django.conf.urls import patterns, url, include
from django.http import HttpResponse


def homepage(request):
    return HttpResponse('ok')

urlpatterns = [
    url('^', include('mellon.urls')),
    url('^$', homepage, name='homepage'),
]

if django.VERSION < (1, 9):
    urlpatterns = patterns('', *urlpatterns)