From 58b843159ea646752b62a65a23fd5cc4620b15d4 Mon Sep 17 00:00:00 2001 From: Ben C Date: Fri, 15 Oct 2021 09:14:32 -0400 Subject: [PATCH] Update README.md --- README.md | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index aa12baf..a9ca906 100644 --- a/README.md +++ b/README.md @@ -96,15 +96,33 @@ The app is set up to output all emails to the "debug-emails" folder in the proje ### Production -Will require an SQL server to connect to, an ActiveDirectory server, an email to send notifications from, and a -webserver to run the Django code on. -Set up your webserver and then point it to ```CodeReview/wsgi.py```. -This will require [environment variables](#Environment-Variables) +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: +```sh +python manage.py createsuperuser +``` +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 -``` python run_tests.py ``` +Tests are available through a file named run_tests.py +```sh +python run_tests.py +``` #### Test Coverage -- knotmirror 0.0.1