mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-15 09:24:52 +03:00
{{cookiecutter.project_slug}}/compose/local/django/start: add makemigrations and loaddata execution for custom_app
This commit is contained in:
parent
84dc9018c4
commit
5287cf3035
|
@ -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' %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user