Index: src/mapservice/codegen/templates/__init__test.mustache
===================================================================
--- src/mapservice/codegen/templates/__init__test.mustache	(revision ae2ff15d6963a93c67e87e175ea31292b8bb3d28)
+++ src/mapservice/codegen/templates/__init__test.mustache	(revision 5c9c24749986dcbc6e8d7597d3dfe3d0e00dc625)
@@ -28,4 +28,5 @@
 
 		application.config.from_object('{{packageName}}.server_impl.Config.TestingConfig')
+		application.template_folder = os.path.join(os.path.dirname(__file__), '../templates')
 		celery = Celery(__name__, broker=application.config['CELERY_BROKER_URL'])
 		celery.config_from_object(application.config)
Index: src/mapservice/codegen/templates/__main__.mustache
===================================================================
--- src/mapservice/codegen/templates/__main__.mustache	(revision ae2ff15d6963a93c67e87e175ea31292b8bb3d28)
+++ src/mapservice/codegen/templates/__main__.mustache	(revision 5c9c24749986dcbc6e8d7597d3dfe3d0e00dc625)
@@ -6,8 +6,10 @@
 {{/supportPython2}}
 
+import os
+
 from {{packageName}}.server_impl import app, application, mail, celery, setup_app, config_object
 
 def main():
-	setup_app('{{appName}}', config_object)
+	setup_app('{{appName}}', config_object, template_folder = os.path.join(os.path.dirname(__file__), 'templates'))
 	app.run(host=application.config.get("HOST", "localhost"), port=application.config.get("PORT", {{serverPort}}))
 
