python manage.py createsuperuser
To login use email and password
/docs
/docs/redoc
python3 -m venv venv
OR
virtualenv --python=python3 venv
source venv/bin/activate
pip install -r requirements.txt
sudo -i -u postgres
psql
CREATE USER user_default WITH PASSWORD 'defaultdatabase';
ALTER USER user_default CREATEDB;
CREATE DATABASE default_database;
ALTER DATABASE default_database OWNER TO user_default;
CREATE EXTENSION pg_trgm;
python manage.py migrate
python manage.py makemessages --locale pt_BR
Change to pt-br on settings:
LANGUAGE_CODE= 'pt-BT'
Obs: Não traduzi - Poderia se usar o Poedit. Deixei assim para futuras traduções.
python manage.py runserver
python manage.py test --failfast
python manage.py dumpdata {app} --indent 4 > seed/{app}.json
bash migrate_and_seed.sh
Use endpoint /auth/signup/
Before use /auth/jwt/create/
Now you have your access_token and refresh_token
Bearer {access_token}