Add keyword arguments to URL definitions

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-04-15 01:26:40 -04:00
parent 78517971ed
commit cb102ed115
33 changed files with 754 additions and 648 deletions

View File

@@ -6,9 +6,9 @@ from .api_views import APIRoot, BrowseableObtainAuthToken, schema_view
api_urls = [
url(r'^$', APIRoot.as_view(), name='api_root'),
url(regex=r'^$', view=APIRoot.as_view(), name='api_root'),
url(
r'^auth/token/obtain/$', BrowseableObtainAuthToken.as_view(),
regex=r'^auth/token/obtain/$', view=BrowseableObtainAuthToken.as_view(),
name='auth_token_obtain'
),
]
@@ -30,5 +30,5 @@ urlpatterns = [
regex=r'^redoc/$', name='schema-redoc',
view=schema_view.with_ui('redoc', cache_timeout=None)
),
url(r'^', include(api_urls)),
url(regex=r'^', view=include(api_urls)),
]