1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
django-client-reverse/django_client_reverse/urls.py

14 lines
317 B
Python
Raw Normal View History

2015-12-09 22:02:27 +00:00
from django.conf.urls import include, url
from .views import Reverser
2015-12-09 22:23:06 +00:00
from os import environ
from . import test_urls
2015-12-09 22:02:27 +00:00
urlpatterns = [
url(r'^$', Reverser.as_view(), name="reverser")
]
2015-12-09 22:23:06 +00:00
if environ.get('IN_URL_TEST', False):
urlpatterns += [
url(r'^tests/', include(test_urls, namespace="tests"))
]