Docker: Move static files

This commit is contained in:
Raphael Michel
2017-02-26 11:55:19 +01:00
parent 767e3ac659
commit a86431bb6d
3 changed files with 2 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ http {
return 404;
}
location /static/ {
alias /static/;
alias /pretix/src/pretix/static.dist/;
access_log off;
expires 365d;
add_header Cache-Control "public";

View File

@@ -1,5 +1,4 @@
from pretix.settings import *
LOGGING['handlers']['mail_admins']['include_html'] = True
STATIC_ROOT = '/static'
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'