This is a new website for Colonial which contains a members only section of the page.
You need to use virutalenv to use the virtual environment for this project
- First you need to use pip to install virtualenv
$ pip install virtualenv
- Next use virtualenv to create your environment folder, where all your installed python modules will live.
$ virtualenv env OR ALTERNATIVELY $ virtualenv venv
- Next you need to go activate your virtualenv
$ source env/bin/activate
- Next you need to install the requirements for the project in your env folder
(env) $ pip install -r requirements.txt
- If you ever need to install something new, add it to requirements.txt, in the following form:
module-name >= x.x.x
This way we will all have consistent dependencies and modules and we will also have a consistent environment with what we end up using in deployment.
Finally, perform migrations and start the server.
(env) $ python manage.py migrate
(env) $ python manage.py runserver
If you wish to temporarily edit local settings, one method is to create a file colonialsite/colonialsite/local_settings.py; settings in this file will override any settings in settings.py.
First, in order to pass CAS authentication, your NetID needs to be in the members.csv file. Copy the example_members.csv file, rename it, and put your NetID in it.
$ cd colonialsite/coloauth
$ cp example_members.csv members.csv
Alternatively, you can create a local superuser and login through /staff/login/.
Next, you'll need Node.js and NPM installed to run the webpack server. Once you install Node.js and NPM, install dependencies:
$ cd colonialsite
$ npm install
Finally, run the webpack server.
$ node server.js
These are the developers:
PM: Nicholas Yang '18
Frontend: Mel Shu '19 Jay Lee '19
Backend: Victor Zhou '19 Bryan Zhu '19 Julie Zhu '19
Alumni: Andrew Ruchames '17