58ea6b12f6
Update file .editorconfig See merge request ccsolutions.io/open-source/templates/django!4 |
||
---|---|---|
app/public | ||
assets | ||
core | ||
Dockerfiles | ||
scripts | ||
templates | ||
tests | ||
.editorconfig | ||
.gitignore | ||
asgi.py | ||
Caddyfile.dev | ||
Caddyfile.pro | ||
django-launcher.sh | ||
docker-compose.yaml | ||
env.example | ||
gulpfile.js | ||
make-a-backup.sh | ||
Makefile | ||
manage.py | ||
package.json | ||
pytest.ini | ||
README.md | ||
requirements.txt |
Requirements
Run 🏃
docker-compose up
Open the browser at http://ruralmeet.localhost/
.
Installation
Development
- Create .env file.
cp env.example .env
- Load fake data
make run.loaddata.fake
Run Gulp
gulp dev
Recreate docker
make docker.recreate.django
Load fake data
make run.loaddata.fake
Production
- Create .env file.
cp env.example .env
- Load minimum data
make run.loaddata
- Create superuser
docker-compose exec -T django bash -c "python3 manage.py createsuperuser"
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://project.localhost
. - Gulp:
http://project.localhost:3000
. - Django:
http://project.localhost:8000
. - Mailhog:
http://project.localhost:8025
.
Bash Django
docker exec -it project-django bash