Always register URL rules. This fixes #81
This commit is contained in:
parent
6e52355eb3
commit
ed16ae2183
3 changed files with 13 additions and 8 deletions
|
|
@ -366,9 +366,7 @@ class _PackageBoundObject(object):
|
|||
|
||||
.. versionadded:: 0.5
|
||||
"""
|
||||
template_folder = os.path.join(self.root_path, 'templates')
|
||||
if os.path.isdir(template_folder):
|
||||
return FileSystemLoader(template_folder)
|
||||
return FileSystemLoader(os.path.join(self.root_path, 'templates'))
|
||||
|
||||
def send_static_file(self, filename):
|
||||
"""Function used internally to send static files from the static
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue