Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
74ff72e0
Commit
74ff72e0
authored
Oct 31, 2014
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FEATURE] EXPLORER adding url and view to test it /explorer
parent
0e094e39
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
urls.py
gargantext_web/urls.py
+3
-1
views.py
gargantext_web/views.py
+12
-0
No files found.
gargantext_web/urls.py
View file @
74ff72e0
...
...
@@ -23,7 +23,9 @@ urlpatterns = patterns('',
url
(
r'^project/(\d+)/add/$'
,
add_corpus
),
url
(
r'^project/(\d+)/corpus/(\d+)/$'
,
corpus
),
url
(
r'^project/(\d+)/corpus/(\d+)/delete$$'
,
delete_corpus
),
url
(
r'^project/(\d+)/corpus/(\d+)/delete/$'
,
delete_corpus
),
url
(
r'^explorer$'
,
explorer
),
)
from
django.conf
import
settings
...
...
gargantext_web/views.py
View file @
74ff72e0
...
...
@@ -334,4 +334,16 @@ def delete_corpus(request, project_id, corpus_id):
Node
.
objects
.
filter
(
id
=
corpus_id
)
.
all
()
.
delete
()
return
HttpResponseRedirect
(
'/project/'
+
project_id
)
def
explorer
(
request
):
t
=
get_template
(
'explorer.html'
)
user
=
request
.
user
date
=
datetime
.
datetime
.
now
()
html
=
t
.
render
(
Context
({
\
'user'
:
user
,
\
'date'
:
date
,
\
}))
return
HttpResponse
(
html
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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