forked from CGM_Public/pretix_original
Serve static files
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
@import "../../../../base/static/bootstrap/less/bootstrap.less";
|
@import "../../bootstrap/less/bootstrap.less";
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background: #eee;
|
background: #eee;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
@import "../../../../base/static/bootstrap/less/bootstrap.less";
|
@import "../../bootstrap/less/bootstrap.less";
|
||||||
@import "../../../../base/static/fontawesome/less/font-awesome.less";
|
@import "../../fontawesome/less/font-awesome.less";
|
||||||
@fa-font-path: "../../fontawesome/fonts";
|
@fa-font-path: "../../fontawesome/fonts";
|
||||||
@import (inline) "metisMenu.min.css";
|
@import (inline) "metisMenu.min.css";
|
||||||
@import "variables.less";
|
@import "variables.less";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
@import "../../../../base/static/bootstrap/less/bootstrap.less";
|
@import "../../bootstrap/less/bootstrap.less";
|
||||||
@import "../../../../base/static/fontawesome/less/font-awesome.less";
|
@import "../../fontawesome/less/font-awesome.less";
|
||||||
@fa-font-path: "../../fontawesome/fonts";
|
@fa-font-path: "../../fontawesome/fonts";
|
||||||
|
|
||||||
@import "event.less";
|
@import "event.less";
|
||||||
|
|||||||
@@ -128,8 +128,9 @@ LOGIN_URL_CONTROL = '/control/login'
|
|||||||
# https://docs.djangoproject.com/en/dev/howto/static-files/
|
# https://docs.djangoproject.com/en/dev/howto/static-files/
|
||||||
|
|
||||||
STATIC_URL = '/static/'
|
STATIC_URL = '/static/'
|
||||||
|
|
||||||
STATIC_ROOT = '_static'
|
STATIC_ROOT = '_static'
|
||||||
|
MEDIA_ROOT = 'media'
|
||||||
|
MEDIA_URL = '/media/'
|
||||||
|
|
||||||
STATICFILES_FINDERS = (
|
STATICFILES_FINDERS = (
|
||||||
'django.contrib.staticfiles.finders.FileSystemFinder',
|
'django.contrib.staticfiles.finders.FileSystemFinder',
|
||||||
@@ -141,6 +142,8 @@ COMPRESS_PRECOMPILERS = (
|
|||||||
('text/less', 'pretix.helpers.lessabsolutefilter.LessFilter'),
|
('text/less', 'pretix.helpers.lessabsolutefilter.LessFilter'),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
COMPRESS_OFFLINE = not DEBUG
|
||||||
|
|
||||||
COMPRESS_CSS_FILTERS = (
|
COMPRESS_CSS_FILTERS = (
|
||||||
'compressor.filters.css_default.CssAbsoluteFilter',
|
'compressor.filters.css_default.CssAbsoluteFilter',
|
||||||
'compressor.filters.cssmin.CSSMinFilter',
|
'compressor.filters.cssmin.CSSMinFilter',
|
||||||
|
|||||||
@@ -8,7 +8,13 @@ https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pretix.settings")
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pretix.settings")
|
||||||
|
|
||||||
from django.core.wsgi import get_wsgi_application # NOQA
|
from django.core.wsgi import get_wsgi_application # NOQA
|
||||||
application = get_wsgi_application()
|
|
||||||
|
try:
|
||||||
|
from dj_static import Cling, MediaCling
|
||||||
|
application = Cling(MediaCling(get_wsgi_application()))
|
||||||
|
except ImportError:
|
||||||
|
application = get_wsgi_application()
|
||||||
|
|||||||
@@ -14,3 +14,4 @@ BeautifulSoup4
|
|||||||
html5lib
|
html5lib
|
||||||
slimit
|
slimit
|
||||||
lxml
|
lxml
|
||||||
|
dj-static
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
[flake8]
|
[flake8]
|
||||||
ignore = N802,W503
|
ignore = N802,W503
|
||||||
max-line-length = 160
|
max-line-length = 160
|
||||||
exclude = migrations,.ropeproject,static,mt940.py
|
exclude = migrations,.ropeproject,static,mt940.py,_static
|
||||||
max-complexity = 12
|
max-complexity = 12
|
||||||
|
|||||||
Reference in New Issue
Block a user