diplomatura-django-utn
Contenido
Introduccion
Front end para la implementación de workflows de observabilidad utilizando Apache Airflow y Grafana como downstream dependencies.
Edicion de estilos
Para poder editarlos y customizarlos luego, los colocamos en templates/
cp -r ~/.envs/diplomatura-django-utn/lib/python3.10/site-packages/django/contrib/admin/templates/registration/ observability_workflows/templates/
cp -r ~/.envs/diplomatura-django-utn/lib/python3.10/site-packages/django/contrib/admin/templates/admin/ observability_workflows/templates/
Uso
make run
make test
make migrate
make makemigrations
make install
make sass
Reconstruir staticfiles en carpeta seleccionada
python manage.py collecstatic
Estructura aplicacion
Ejecutar aplicacion
Primero hacer un build
docker-compose build
Luego ejecutar
docker-compose up
# daemon
docker-compose up -d
Testing
Crear setup
Documentacion
# create new project
django-admin startproject <PROJECT_NAME>
# create new app
django-admin startapp <APP_NAME>
# run development server
python manage.py runserver
# create required databases
python manage.py migrate
# create super user for admin panel
python manage.py createsuperuser
# update schemas
python manage.py makemigrations
Bootstrap templates (active using)
- https://getbootstrap.com/docs/5.3/examples/
- https://getbootstrap.com/docs/5.3/examples/sidebars/
- https://getbootstrap.com/docs/5.3/examples/dashboard/
Frontend templates
Workaround migrations deletion: https://stackoverflow.com/questions/60521621/i-accidentally-deleted-the-migrations-folder-in-django