Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beat.web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
beat
beat.web
Commits
43e7fff6
Commit
43e7fff6
authored
7 years ago
by
Samuel GAIST
Browse files
Options
Downloads
Patches
Plain Diff
[urls] Update url for REST Framework swagger
parent
02b60707
No related branches found
No related tags found
2 merge requests
!255
1.4.x
,
!238
Upgrade to django 1.11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
beat/web/urls.py
+5
-1
5 additions, 1 deletion
beat/web/urls.py
with
5 additions
and
1 deletion
beat/web/urls.py
+
5
−
1
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/
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment