First of all, you may need to install pyenv in order to manage multiple version of python. It is not necessary. pyenv can be installed via brew
$ brew install pyenv
Windows
$ pip install pyenv-win
Pipenv installation
$ pip install pipenv
pipenv installation(if you need)
pip install pipenv
step 1
pyenv install 3.6.9
step 2
pyenv local 3.6.9
This project uses pipenv for managing our packages and creating virtual environment to isolate our dependencies. If you have installed pipenv it should be as simple as:
install the dependencies.
pipenv install -d
In case you you are not sure which version of pyenv you are running this command can help you to sort it out. -rm will remove the virtual environment and start it again.
$ pyenv install 3.6.9
$ pyenv local 3.6.9
$ pipenv --rm
$ pipenv --python 3.6.9
$ pipenv install -d
There is swagger and redocs as options.
[swagger api doc] http://127.0.0.1:8000/swagger/
[redoc api doc] http://127.0.0.1:8000/redoc/
Once your dependencies are sorted run the command
$ pipenv shell
$ python manager.py migrate
$ python manager.py runserver
You should get this confirmation.
$ System check identified no issues (0 silenced).
$ December 12, 2019 - 09:41:34
$ Django version 3.0, using settings 'control_q.settings'
$ Starting development server at http://127.0.0.1:8000/
$ Quit the server with CONTROL-C.
contact: gilsondia@gmail.com phone: 0415 691 863