Private
Public Access
1
0

minification of html

This commit is contained in:
Sander Roosendaal
2016-12-08 15:45:10 +01:00
parent ee7f22876d
commit 28d2664f38
3 changed files with 11 additions and 10 deletions

View File

@@ -996,7 +996,7 @@ def interactive_flex_chart2(id=0,promember=0,
plot = Figure(x_axis_type=x_axis_type,y_axis_type=y_axis_type,
tools=TOOLS,
toolbar_sticky=False,
toolbar_sticky=False
)
x1means = Span(location=x1mean,dimension='height',line_color='green',
@@ -1235,8 +1235,6 @@ def interactive_flex_chart2(id=0,promember=0,
js_resources = INLINE.render_js()
css_resources = INLINE.render_css()
return [script,div,js_resources,css_resources]

View File

@@ -2683,14 +2683,14 @@ def workout_flexchart3_view(request,*args,**kwargs):
workstrokesonly = False
# create interactive plot
res = interactive_flex_chart2(id,xparam=xparam,yparam1=yparam1,
script,div,js_resources,css_resources = interactive_flex_chart2(id,xparam=xparam,yparam1=yparam1,
yparam2=yparam2,
promember=promember,plottype=plottype,
workstrokesonly=workstrokesonly)
script = res[0]
div = res[1]
js_resources = res[2]
css_resources = res[3]
# script = res[0]
# div = res[1]
# js_resources = res[2]
# css_resources = res[3]
if row.workouttype == 'water':
return render(request,

View File

@@ -60,6 +60,9 @@ AUTHENTICATION_BACKENDS = (
)
MIDDLEWARE_CLASSES = [
'django.middleware.gzip.GZipMiddleware',
'htmlmin.middleware.HtmlMinifyMiddleware',
'htmlmin.middleware.MarkRequestMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',