- Install virtualenv for encapsulate the environment
- Create the virtual environment
virtualenv -p python3 venv - Activate the virtualenv
. venv/bin/activate - Install the requirements
pip3 install -r requirements.txt - Run the server
./runserverThe app will run on port 5000
Just run
$ docker-compose upAnd the application will run on port 9300 for http
$ ./runtest$ ./shellThe purpose of putting the tasks inside registered_tasks.py file is because easier to register the task and prevent us to add more worker later. To setup the schedule of background tasks, just register on settings.py file.