Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.web
Commits
43e7fff6
Commit
43e7fff6
authored
Mar 08, 2018
by
Samuel GAIST
Browse files
[urls] Update url for REST Framework swagger
parent
02b60707
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/web/urls.py
View file @
43e7fff6
...
...
@@ -30,6 +30,8 @@ from django.conf import settings
from
django.views.generic
import
TemplateView
from
django.contrib.staticfiles.urls
import
staticfiles_urlpatterns
from
rest_framework_swagger.views
import
get_swagger_view
from
.ui
import
urls
as
ui_urls
from
.navigation
import
urls
as
navigation_urls
...
...
@@ -38,6 +40,8 @@ from urlparse import urlparse
from
django.contrib
import
admin
admin
.
autodiscover
()
schema_view
=
get_swagger_view
(
title
=
'BEAT API'
)
# Views
unprefixed_patterns
=
ui_urls
.
urlpatterns
unprefixed_patterns
+=
navigation_urls
.
urlpatterns
...
...
@@ -103,7 +107,7 @@ unprefixed_patterns += [
url
(
r
'^admin/'
,
include
(
admin
.
site
.
urls
)),
url
(
r
'^docs/'
,
include
(
'rest_framework_swagger.urls'
,
namespace
=
'docs'
),
schema_view
),
url
(
r
'^activity/'
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment