You first need to fork the repo from either Team-213-A-Back-End or Team-213-A-Front-End depending on your stack.
Clone the forked repo
git clone git@github.com:[username]/Team-213-A-Back-End.git
or
git clone git@github.com:[username]/Team-213-A-Front-End.git
There are several ways depending on the OS and package you choose. Here's my favorite
sudo apt-get install python3-pip
pip3 install virtualenv
Then either
python3 -m venv venv
or
python -m venv venv
or
virtualenv venv
(you can call it venv or anything you like)
source venv/bin/activate
Within the activated virtual environment run:
pip3 install -r requirements.txt
or
pip install -r requirements.txt
Environment Variables are handled by python-decouple
.
In the same folder as manage.py
, add a file called .env
.
Inside it, set the variables in this format:
SECRET_KEY=s3cr3tk3y DEBUG=True ALLOWED_HOSTS=127.0.0.1, .localhost, .herokuapp.com
Access the variables within settings.py
, example:
from decouple import config ... ... SECRET_KEY = config('SECRET_KEY') DEBUG = config('DEBUG', cast=bool) TIME_ZONE = config('TIME_ZONE')
Read the Python Decouple Documentation for more information.
python manage.py migrate
python manage.py runserver
The project is licensed under the MIT License