-
+
diff --git a/Main/templates/widgets/rubric_grade.html b/Main/templates/widgets/rubric_grade.html
index 247271c..d58428a 100644
--- a/Main/templates/widgets/rubric_grade.html
+++ b/Main/templates/widgets/rubric_grade.html
@@ -12,9 +12,10 @@
{{ row.name }} {{ row.description }} Max: {{ row.max_score }} |
{% for cell in row|cells %}
-
{{ cell.score }} |
+
{{ cell.score }}
+ |
{% endfor %}
N/A |
diff --git a/Main/templatetags/form_tags.py b/Main/templatetags/form_tags.py
index af5f0a2..fc62e28 100644
--- a/Main/templatetags/form_tags.py
+++ b/Main/templatetags/form_tags.py
@@ -1,6 +1,6 @@
from django import template
+from django.forms import BoundField
from django.forms.fields import CheckboxInput
-from django.forms import Field, BoundField
register = template.Library()
diff --git a/Main/templatetags/review_tags.py b/Main/templatetags/review_tags.py
index 6e7d825..65bd0e2 100644
--- a/Main/templatetags/review_tags.py
+++ b/Main/templatetags/review_tags.py
@@ -1,6 +1,5 @@
from django import template
from django.db.models import QuerySet
-from django.core.paginator import Page
from Main.models import Review
from Users.models import User
diff --git a/Main/views.py b/Main/views.py
index f2a403e..9402756 100644
--- a/Main/views.py
+++ b/Main/views.py
@@ -1,7 +1,7 @@
from datetime import datetime
-from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin
from django.contrib import messages
+from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin
from django.core import mail
from django.db.models import Q, QuerySet
from django.http import HttpResponse, HttpResponseRedirect, Http404
@@ -10,12 +10,13 @@ from django.template.loader import render_to_string
from django.urls import reverse_lazy
from django.views import View
from django.views.generic import TemplateView, CreateView, UpdateView, DeleteView, DetailView, ListView
-from django.views.generic.edit import FormMixin, DeletionMixin
from django.views.generic.base import ContextMixin
+from django.views.generic.edit import FormMixin, DeletionMixin
from Users.models import User
from . import models, forms
+
# Email Utility Functions
@@ -60,7 +61,6 @@ class FormNameMixin(ContextMixin):
class FormAlertMixin(FormMixin):
-
request = None
success_message: str = "Complete"
@@ -76,13 +76,13 @@ class FormAlertMixin(FormMixin):
class SuccessDeleteMixin(DeletionMixin):
-
success_message: str = "Deleted"
def delete(self, request, *args, **kwargs):
messages.add_message(request, messages.SUCCESS, self.success_message)
return super(SuccessDeleteMixin, self).delete(request, *args, **kwargs)
+
# Home
diff --git a/README.md b/README.md
index a9ca906..91ba93d 100644
--- a/README.md
+++ b/README.md
@@ -96,30 +96,42 @@ The app is set up to output all emails to the "debug-emails" folder in the proje
### Production
-First, set up your [environment variables](#Environment-Variables).
-Afterward, you'll need to run the following to set up your database
+First, set up your [environment variables](#Environment-Variables). Afterward, you'll need to run the following to set
+up your database
+
```sh
python manage.py migrate
```
+
After this is completed, it's recommended you run [tests](#Tests) to ensure the website will work.
-Next, you will need to set up Django with IIS, directions can be found [here](https://medium.com/nonstopio/deploy-django-application-on-windows-iis-server-93aee2864c41).
-In addition, you'll need to set up IIS to pass the app the REMOTE_USER header, directions for this can be found [here](https://www.ibm.com/docs/en/cognos-analytics/11.1.0?topic=essbadscc-enabling-single-signon-between-active-directory-server-cognos-components-use-remote-user).
-Now students and reviewers can log in through ActiveDirectory, however, the instructor is not in the ActiveDirectory system. To add the instructor, run the following:
+Next, you will need to set up Django with IIS, directions can be
+found [here](https://medium.com/nonstopio/deploy-django-application-on-windows-iis-server-93aee2864c41).
+In addition, you'll need to set up IIS to pass the app the REMOTE_USER header, directions for this can be
+found [here](https://www.ibm.com/docs/en/cognos-analytics/11.1.0?topic=essbadscc-enabling-single-signon-between-active-directory-server-cognos-components-use-remote-user)
+.
+Now students and reviewers can log in through ActiveDirectory, however, the instructor is not in the ActiveDirectory
+system. To add the instructor, run the following:
+
```sh
python manage.py createsuperuser
```
-Follow the interactive prompt to create the instructor's account.
+
+Follow the interactive prompt to create the instructor's account.
#### Changing the instructor's password
+
If the password for the instructor's account is lost, the following can be run to reset it
+
```sh
python manage.py changepassword {Instructor's username}
```
+
Then, follow the interactive prompt to reset the password.
### Tests
-Tests are available through a file named run_tests.py
+Tests are available through a file named run_tests.py
+
```sh
python run_tests.py
```
diff --git a/Users/templates/login.html b/Users/templates/login.html
index dd23e0d..8d7055a 100644
--- a/Users/templates/login.html
+++ b/Users/templates/login.html
@@ -7,13 +7,13 @@
{% block submitWord %}Login{% endblock %}
{% block errorHandling %}
- {% if form.non_field_errors %}
-
-
- {% for error in form.non_field_errors %}
- {{ error }}
- {% endfor %}
-
-
- {% endif %}
+ {% if form.non_field_errors %}
+
+
+ {% for error in form.non_field_errors %}
+ {{ error }}
+ {% endfor %}
+
+
+ {% endif %}
{% endblock %}
\ No newline at end of file
diff --git a/Users/templates/logout_complete.html b/Users/templates/logout_complete.html
index ed520c4..d64af75 100644
--- a/Users/templates/logout_complete.html
+++ b/Users/templates/logout_complete.html
@@ -8,9 +8,9 @@
{% block containerClass %}container{% endblock %}
{% block mainContent %}
-
-
{% endblock %}
diff --git a/coverage.svg b/coverage.svg
index 76128e8..9c8b05a 100644
--- a/coverage.svg
+++ b/coverage.svg
@@ -1 +1,27 @@
-
\ No newline at end of file
+
\ No newline at end of file
--
knotmirror 0.0.1
From 7d230b27a6d490e885b9b2c216bdb012dad4b4df Mon Sep 17 00:00:00 2001
From: Ben C
Date: Sat, 16 Oct 2021 16:01:54 -0400
Subject: [PATCH 05/10] Update Instructor/templates/rubrics/rubric_list.html
---
Instructor/templates/rubrics/rubric_list.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Instructor/templates/rubrics/rubric_list.html b/Instructor/templates/rubrics/rubric_list.html
index 1b51259..cc24a0a 100644
--- a/Instructor/templates/rubrics/rubric_list.html
+++ b/Instructor/templates/rubrics/rubric_list.html
@@ -36,4 +36,4 @@
-{% endblock %}
\ No newline at end of file
+{% endblock %}
--
knotmirror 0.0.1
From 9992a1df86872a05123aeda196d16ce7b76b4f1d Mon Sep 17 00:00:00 2001
From: Ben C