Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
dashboard
Commits
32aa1312
Commit
32aa1312
authored
Feb 27, 2019
by
Guilhem Saurel
Browse files
slug shortcut
parent
c8e32e3f
Pipeline
#3099
passed with stages
in 1 minute and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/urls.py
View file @
32aa1312
from
django.urls
import
path
,
include
from
django.urls
import
include
,
path
from
django.views.generic
import
RedirectView
,
TemplateView
from
rest_framework
import
routers
...
...
@@ -40,4 +40,5 @@ urlpatterns = [
path
(
'graph'
,
TemplateView
.
as_view
(
template_name
=
'rainboard/graph.html'
),
name
=
'graph'
),
path
(
'api/'
,
include
(
router
.
urls
)),
path
(
'api-auth/'
,
include
(
'rest_framework.urls'
,
namespace
=
'rest_framework'
)),
path
(
'<str:slug>'
,
RedirectView
.
as_view
(
pattern_name
=
'project'
),
name
=
'project_redirect'
),
]
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