Skip to content

Commit

Permalink
formgrader: fix template_paths setting
Browse files Browse the repository at this point in the history
- Solution from jupyter#1373, thanks to @gzagatti
- I don't know how or why this works
  • Loading branch information
rkdarst committed Jan 11, 2021
1 parent 63686ad commit 89c18e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nbgrader/server_extensions/formgrader/formgrader.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def _classes_default(self):
def build_extra_config(self):
extra_config = super(FormgradeExtension, self).build_extra_config()
extra_config.HTMLExporter.template_file = 'formgrade'
extra_config.HTMLExporter.template_path = [handlers.template_path]
extra_config.HTMLExporter.template_paths.append(handlers.template_path)
return extra_config

def init_tornado_settings(self, webapp):
Expand Down

0 comments on commit 89c18e0

Please sign in to comment.