Permalink
Browse files

When autoreload is turned on, we force settings.debug = True, so that…

… Templates will also be autoreloaded.
  • Loading branch information...
1 parent 27710ad commit 9ad3cd354659b6a31fa18c6ef6d1a21dc622143d @kurtiss committed Dec 3, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 shrapnel/command.py
View
@@ -46,6 +46,7 @@ def _tornado_application(self):
self._tornado_application_instance = self.get_tornado_application()
settings = self._tornado_application_instance.settings
settings['template_path'] = settings.get('template_path', os.path.join(self.path, 'templates'))
+ settings['debug'] = self.autoreload or settings.get('debug', False)
return self._tornado_application_instance

0 comments on commit 9ad3cd3

Please sign in to comment.