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
c1706446
Commit
c1706446
authored
Nov 13, 2020
by
Samarth Joshi
Browse files
Options
Browse Files
Download
Plain Diff
Merge conflicts
parents
c0815514
20629bcb
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
4 deletions
+9
-4
QuizSystem/__pycache__/urls.cpython-38.pyc
QuizSystem/__pycache__/urls.cpython-38.pyc
+0
-0
QuizSystem/urls.py
QuizSystem/urls.py
+5
-1
db.sqlite3
db.sqlite3
+0
-0
quiz/__pycache__/views.cpython-38.pyc
quiz/__pycache__/views.cpython-38.pyc
+0
-0
quiz/models.py
quiz/models.py
+1
-1
quiz/templates/upload.html
quiz/templates/upload.html
+2
-1
quiz/views.py
quiz/views.py
+1
-1
No files found.
QuizSystem/__pycache__/urls.cpython-38.pyc
View file @
c1706446
No preview for this file type
QuizSystem/urls.py
View file @
c1706446
...
...
@@ -22,6 +22,7 @@ from django.conf.urls import url
from
django.views.generic
import
TemplateView
from
django.conf.urls.static
import
static
from
django.urls
import
path
,
include
from
django.contrib.auth
import
views
as
auth_views
urlpatterns
=
[
path
(
'admin/'
,
admin
.
site
.
urls
),
...
...
@@ -38,7 +39,10 @@ urlpatterns = [
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
),
path
(
'monitor/'
,
a
.
monitor
)
path
(
'monitor/'
,
a
.
monitor
),
path
(
'logout/'
,
auth_views
.
LogoutView
.
as_view
(),
name
=
'logout'
)
...
...
db.sqlite3
View file @
c1706446
No preview for this file type
quiz/__pycache__/views.cpython-38.pyc
View file @
c1706446
No preview for this file type
quiz/models.py
View file @
c1706446
...
...
@@ -15,7 +15,7 @@ class quiz(models.Model):
quizCode
=
models
.
CharField
(
max_length
=
100
,
default
=
'Code'
)
##quiz Code set by instructor
quizDone
=
models
.
BooleanField
(
default
=
False
)
quizInfo
=
models
.
CharField
(
max_length
=
100
,
default
=
"No Info Available"
)
quizInst
ructor
=
models
.
ForeignKey
(
to
=
User
,
on_delete
=
models
.
CASCADE
)
8
ructor
=
models
.
ForeignKey
(
to
=
User
,
on_delete
=
models
.
CASCADE
)
@
property
def
end_datetime
(
self
):
...
...
quiz/templates/upload.html
View file @
c1706446
...
...
@@ -8,12 +8,13 @@
<script
src=
"{% static 'js/quiz_create_page.js' %}"
></script>
</head>
<body>
<a
href=
"{% url "
logout
"
%}?
next=
/"
>
logout
</a>
<form
name =
"form"
enctype =
"multipart/form-data"
action =
"{% url "
uploaded
"
%}"
method =
"POST"
id=
"quiz_create_form"
>
{% csrf_token %}
<div
id=
"quiz_controls"
>
<p><a
href=
"../create_quiz"
>
Click here to manually add all questions
</a></p>
<div
style=
"padding: 20px"
>
<h3>
Quiz Name:
</h3>
...
...
quiz/views.py
View file @
c1706446
...
...
@@ -159,7 +159,7 @@ def instructor(request):
allStudents
.
append
(
student
[
'studentId'
])
std
=
np
.
std
(
allMarks
)
mean
=
np
.
mean
(
allMarks
)
ax
.
scatter
(
allMarks
,
allStudents
)
ax
.
hist
(
allMarks
,
allStudents
)
html_graph
=
mpld3
.
fig_to_html
(
fig
)
fig1
,
ax1
=
plt
.
subplots
()
mu
=
mean
...
...
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