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
90413451
Commit
90413451
authored
Mar 07, 2019
by
Guilhem Saurel
Browse files
nope
parent
c0bce38c
Pipeline
#3408
passed with stages
in 1 minute and 8 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/urls.py
View file @
90413451
...
...
@@ -40,5 +40,6 @@ 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
(
'favicon.ico'
,
views
.
nope
,
name
=
'nope'
),
path
(
'<str:slug>'
,
RedirectView
.
as_view
(
pattern_name
=
'rainboard:project'
),
name
=
'project_redirect'
),
]
rainboard/views.py
View file @
90413451
from
subprocess
import
PIPE
,
run
from
django.http
import
Http404
from
django.http.response
import
HttpResponse
,
JsonResponse
from
django.views.generic
import
DetailView
...
...
@@ -11,6 +12,10 @@ from rest_framework import permissions, viewsets
from
.
import
filters
,
models
,
serializers
,
tables
def
nope
(
request
):
raise
Http404
(
'not found'
)
class
ForgesView
(
SingleTableView
):
model
=
models
.
Forge
table_class
=
tables
.
ForgeTable
...
...
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