The first thing to do is to clone the repository:
$ git clone https://github.com/JovidYnwa/UPI.git
Create a virtual environment to install dependencies in and activate it:
$ virtualenv venv
$ source env/bin/activate
Then install the dependencies:
(env)$ pip install -r requirements.txt
Note the (env)
in front of the prompt. This indicates that this terminal
session operates in a virtual environment set up by virtualenv
.
Once pip
has finished downloading the dependencies:
(env)$ cd project
(env)$ python manage.py runserver
Celery command (upi is the name of the project):
launching celery command: celery -A upi worker -l info
launching celery beat process: celery -A upi beat -l INFO
Pytest
Tests are invoked directly with the pytest command, instead of manage.py test, that you might be used to:
pytest