{{cookiecutter.project_slug}}/compose/local/django/start: add makemigrations and loaddata execution for custom_app

This commit is contained in:
Henry Jobst 2023-01-18 21:21:23 +01:00
parent 84dc9018c4
commit 5287cf3035

View File

@ -4,6 +4,10 @@ set -o errexit
set -o pipefail set -o pipefail
set -o nounset set -o nounset
{%- if cookiecutter.include_custom_app %}
python manage.py makemigrations {{ cookiecutter.custom_app_name }}
python manage.py loaddata --app {{ cookiecutter.custom_app_name }} initial_data.json
{%- endif %}
python manage.py migrate python manage.py migrate
{%- if cookiecutter.use_async == 'y' %} {%- if cookiecutter.use_async == 'y' %}