Commit d4d887b8 authored by svilayphiou's avatar svilayphiou
Browse files

fallback if no pad called slidy.css

parent 043790d5
......@@ -414,4 +414,8 @@ def css_slide(request):
epclient = EtherpadLiteClient(pad.server.apikey, pad.server.apiurl)
return HttpResponse(epclient.getText(padID)['text'], mimetype="text/css")
# If there is no pad called "css", loads a default css file
f = open('relearn/static/css/slidy.css', 'r')
css =
return HttpResponse(css, mimetype="text/css")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment