<filename>jwtserver/urls.py
from django.conf.urls import include, url
from django.urls import path
from django.conf import settings
from django.contrib import admin

from .views import home

admin.autodiscover()

urlpatterns = [
    # Examples:
    url(r"^$", home, name="home"),
    url(r"^api/", include("jwtserver.apps.token_api.urls")),
    path("accounts/", include("django_cas.urls")),
    url(r"^admin/", admin.site.urls),
]

# debug toolbar for dev
if settings.DEBUG and "debug_toolbar" in settings.INSTALLED_APPS:
    import debug_toolbar

    urlpatterns += [
        url(r"^__debug__/", include(debug_toolbar.urls)),
    ]
