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

13 lines
317 B
Python

from django.conf.urls import include, url
from .views import Reverser
from os import environ
from . import test_urls
urlpatterns = [
url(r'^$', Reverser.as_view(), name="reverser")
]
if environ.get('IN_URL_TEST', False):
urlpatterns += [
url(r'^tests/', include(test_urls, namespace="tests"))
]