- First set the enviroment:(linux/mac)
Bash:
python3 -m venv .venv # create basic system files
fish #to enter fish's terminal
source .venv/bin/activate.fish #to gain acess to execute the local server
- Django instalation:
Fish bash:
pip install Django
pip install django-rest-framework
- Django setting project:
Fish bash:
django-admin startproject api_pets .
- Django creating app to develop:
Fish bash:
python manage.py startapp pet
- Django executing server:
Fish bash:
python manage.py runserver
- Django setting migrations that create models that will go to the database:
Fish bash:
python manage.py makemigrations
- Django applying all the setted migrations to the database:
Fish bash:
python manage.py makemigrations
- Install PEP 8 :
Fish bash:
pip install black
black . #fomart everything