Skip to content

Latest commit

 

History

History
50 lines (39 loc) · 979 Bytes

README.md

File metadata and controls

50 lines (39 loc) · 979 Bytes

Deal or No Deal

Student deal voting site

Requirements

  • Python 3
  • PiP

Automatic Setup

Run either setup.bat or setup.sh to setup environment and database. The scripts create a virtual environment with the name venv, which must be activated manually before the server is started. Both scripts make the assumption python is Python 3.

Manual Setup

Create a virtual environment:
python -m venv venv_name
Active the virtual environment
venv_name\Scripts\activate.bat

or

source venv_name/bin/activate
Install dependencies
pip install -r requirements.txt
Setup and populate database
python manage.py makemigrations dondapp
python manage.py makemigrations
python manage.py
python populate_script.py

Running server

Ensure your virtual environment is activated, then

python manage.py runserver

Then the server can be accessed at http://127.0.0.1:8080