set "DEBUG = True" in local_test (so static files are served)

This commit is contained in:
JensDiemer 2020-12-29 15:04:06 +01:00
parent 4ceb5f47c5
commit 24c6372d30

View file

@ -97,6 +97,7 @@ def create_local_test(django_settings_path, destination, runserver=False):
with Path(final_home_path / 'local_settings.py').open('w') as f: with Path(final_home_path / 'local_settings.py').open('w') as f:
f.write('# Only for local test run\n') f.write('# Only for local test run\n')
f.write('DEBUG = True\n')
f.write('SERVE_FILES = True # used in src/inventory_project/urls.py\n') f.write('SERVE_FILES = True # used in src/inventory_project/urls.py\n')
f.write('AUTH_PASSWORD_VALIDATORS = [] # accept all passwords\n') f.write('AUTH_PASSWORD_VALIDATORS = [] # accept all passwords\n')