mirror of
https://github.com/YunoHost-Apps/django_example_ynh.git
synced 2024-09-03 18:26:21 +02:00
set "DEBUG = True" in local_test (so static files are served)
This commit is contained in:
parent
4ceb5f47c5
commit
24c6372d30
1 changed files with 1 additions and 0 deletions
|
@ -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')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue