django-template/README.md
2021-07-01 09:46:33 +02:00

910 B

Install

make docker.recreate.django
make run.loaddata
make run.server

Now open:

http://api.localhost

Gulp

npm i

Run.

gulp dev

Tools

Lint

make lint

Formatear

make format

Recrear imagen de Django

make docker.recreate.django

Hacer una nueva migración después de cambiar un model.

make makemigrations

Migrar

make run.migrate

Cargar data mínima.

make run.loaddata

Generar data de desarrollo.

make run.loaddata.test

Other domains

  • Caddy: http://api.localhost.
  • Gulp: http://api.localhost:3000.
  • Django: http://api.localhost:8000.
  • Mailhog: http://api.localhost:8025.

Bash Django

docker exec -it api_django_1 bash

Run production

docker-compose -f docker-compose.pro.yaml up

Open https://domain.com.