Merge pull request #2890 from normanjaeckel/CollectStatic

Fixed error when running manage.py collectstatic. Fixed #2861.
This commit is contained in:
Emanuel Schütze 2017-01-18 19:01:07 +01:00 committed by GitHub
commit 601edfcce7
2 changed files with 3 additions and 0 deletions

1
.gitignore vendored
View File

@ -15,6 +15,7 @@ bower_components/*
# Local user data (settings, database, media, search index, static files)
personal_data/*
openslides/static/*
collected-static/*
# Package building/IDE
docs/_build/*

View File

@ -253,6 +253,8 @@ def write_settings(settings_path=None, template=None, **context):
os.makedirs(settings_module)
with open(settings_path, 'w') as settings_file:
settings_file.write(content)
openslides_user_data_path = context['openslides_user_data_path'].strip("'")
os.makedirs(os.path.join(openslides_user_data_path, 'static'), exist_ok=True)
return os.path.realpath(settings_path)