PIS FIT BUT Project
- It will start db, apply migrations, populate db and run server on localhost:8000
docker-compose up
If you need to delete data from DB:
docker-compose down -v
To rebuild images use docker-compose build
or docker-compose up --build
- Setup virtual environment
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
- Assure you have database up and running
e.g.
docker run --name postgres --publish 127.0.0.1:5432:5432 -d postgres
cd mysite
- Migrate DB
python manage.py migrate
- Populate DB
python populate.py
- Run server, default: localhost:8000
python manage.py runserver