Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Pariksha
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roshan Rabinarayan
Pariksha
Commits
48f3dc07
Commit
48f3dc07
authored
Nov 07, 2020
by
Samarth Joshi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.cse.iitb.ac.in/sroshan/Pariksha
parents
8f67c297
764f54d0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
0 deletions
+28
-0
QuizSystem/urls.py
QuizSystem/urls.py
+1
-0
quiz/templates/quizTable.html
quiz/templates/quizTable.html
+24
-0
quiz/views.py
quiz/views.py
+3
-0
No files found.
QuizSystem/urls.py
View file @
48f3dc07
...
...
@@ -34,6 +34,7 @@ urlpatterns = [
path
(
'result/'
,
a
.
result
,
name
=
"result"
),
url
(
r'^upload/'
,
TemplateView
.
as_view
(
template_name
=
'upload.html'
)),
url
(
'instructor/'
,
a
.
instructor
),
url
(
'quizTable/'
,
a
.
quizTable
),
path
(
'uploaded/'
,
a
.
upload_file
,
name
=
"uploaded"
),
path
(
'sign_up/'
,
a
.
sign_up
,
name
=
"sign-up"
),
path
(
'accounts/'
,
include
(
'django.contrib.auth.urls'
)),
path
(
'create_quiz/'
,
a
.
create_quiz
),
path
(
'add_quiz/'
,
a
.
add_quiz
),
...
...
quiz/templates/quizTable.html
0 → 100644
View file @
48f3dc07
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
Title
</title>
</head>
<body>
<table
>
<th>
Quiz Id
</th><th>
Start Time
</th><th>
Date
</th><th>
Quiz Length
</th><th>
Quiz Code
</th><th>
Quiz Done
</th><th>
Quiz Info
</th><th>
Quiz Instructor
</th>
{%for q in quizs%}
<tr>
<td>
{{q.quizId}}
</td>
<td>
{{q.startTime}}
</td>
<td>
{{q.date}}
</td>
<td>
{{q.length}}
</td>
<td>
{{q.quizCode}}
</td>
<td>
{{q.quizDone}}
</td>
<td>
{{q.quizInfo}}
</td>
<td>
{{q.quizInstructor}}
</td>
</tr>
{%endfor%}
</table>
</body>
</html>
\ No newline at end of file
quiz/views.py
View file @
48f3dc07
...
...
@@ -159,6 +159,9 @@ def instructor(request):
html_graph1
=
mpld3
.
fig_to_html
(
fig1
)
return
render
(
request
,
'instructor.html'
,{
"graph"
:
html_graph
,
"graph1"
:
html_graph
,
"graph2"
:
html_graph1
,
'quiz_id'
:
q_id
,
'cribs'
:
cribbs
})
def
quizTable
(
request
):
quizs
=
quiz
.
objects
.
filter
(
quizInstructor
=
request
.
user
)
.
all
()
return
render
(
request
,
'quizTable.html'
,{
'quiz'
:
quizs
})
def
handle_uploaded_file
(
f
,
q1
):
with
open
(
'name.csv'
,
'wb+'
)
as
destination
:
...
...
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