mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-15 09:24:52 +03:00
start: fix order of manage.py commands
This commit is contained in:
parent
97ad09b26b
commit
68e936dca9
|
@ -6,10 +6,11 @@ set -o nounset
|
||||||
|
|
||||||
{%- if cookiecutter.include_custom_app %}
|
{%- if cookiecutter.include_custom_app %}
|
||||||
python manage.py makemigrations {{ cookiecutter.custom_app_name }}
|
python manage.py makemigrations {{ cookiecutter.custom_app_name }}
|
||||||
|
{%- endif %}
|
||||||
|
python manage.py migrate
|
||||||
|
{%- if cookiecutter.include_custom_app %}
|
||||||
python manage.py loaddata --app {{ cookiecutter.custom_app_name }} initial_data.json
|
python manage.py loaddata --app {{ cookiecutter.custom_app_name }} initial_data.json
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
python manage.py migrate
|
|
||||||
{%- if cookiecutter.use_async == 'y' %}
|
{%- if cookiecutter.use_async == 'y' %}
|
||||||
exec uvicorn config.asgi:application --host 0.0.0.0 --reload --reload-include '*.html'
|
exec uvicorn config.asgi:application --host 0.0.0.0 --reload --reload-include '*.html'
|
||||||
{%- else %}
|
{%- else %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user