Skip to content
Website built with the Django web development framework
Python HTML CSS Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
core removed unused code Nov 16, 2019
cpratings new url to serve static files in production Nov 30, 2019
department_courses initial Sep 22, 2019
fixtures data as of 11.27.2019 Nov 28, 2019
home
postings
teacher_profile emails only send when not in debug mode Nov 29, 2019
.gitignore
LICENSE Create LICENSE Sep 22, 2019
README.md Update README.md Sep 22, 2019
manage.py initial Sep 22, 2019
requirements.txt
utilities.py initial Sep 22, 2019

README.md

calpolyratings

How to run site

  1. Clone repo

  2. Create virtualenv

virtualenv --python=/usr/bin/python3.6 venv

  1. Enter virtualenv

source ./venv/bin/activate

  1. Install project requirements

pip install -r requirements.txt

  1. Set DJANGO_SETTINGS_MODULE to dev_settings

export DJANGO_SETTINGS_MODULE=cpratings.dev_settings

  1. Create secrets.json file in calpolyratings/cpratings directory
{
 
  "SECRET_KEY" : "adkghlk1q(tf*6^y0nj9vak@533asd(a$)-v-(ii*lalrbb_xa@",

  "SQL_PW" : "----",

  "SQL_USERNAME" : "----",

  "RECAPTCHA_SECRET_KEY" : "",

  "ADMIN_URL" : "admin/",

  "EMAIL" : "---@gmail.com",

  "EMAIL_PW" : "---"

}
  1. In calpolyratings/ apply migrations

python manage.py migrate

  1. Run scripts that generate test data

./fixtures/load_data.sh

  1. Run site

python manage.py runserver

You can’t perform that action at this time.