Merge pull request #2890 from normanjaeckel/CollectStatic
Fixed error when running manage.py collectstatic. Fixed #2861.
This commit is contained in:
commit
601edfcce7
1
.gitignore
vendored
1
.gitignore
vendored
@ -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/*
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user