Merge pull request #4084 from ostcar/fix_example_data_generator

Fix example data generator
This commit is contained in:
Emanuel Schütze 2019-01-07 08:40:38 +01:00 committed by GitHub
commit 6db5c90180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ class CoreAppConfig(AppConfig):
# Skip all database related accesses during migrations. # Skip all database related accesses during migrations.
is_normal_server_start = False is_normal_server_start = False
for sys_part in sys.argv: for sys_part in sys.argv:
for entry in ('runserver', 'gunicorn', 'daphne'): for entry in ('runserver', 'gunicorn', 'daphne', 'create-example-data'):
if sys_part.endswith(entry): if sys_part.endswith(entry):
is_normal_server_start = True is_normal_server_start = True
break break