#!/usr/bin/env python

import os
import sys

sys.stdout = sys.stderr

LABMANAGER_DIR = os.path.dirname(__file__)

sys.path.insert(0, LABMANAGER_DIR)

import config

from labmanager import app as application
application.config.from_object('config')

@@ -141,16 +141,41 @@
 GER_DIR)
+%0Aos.chdir(LABMANAGER_DIR)
 %0A%0Aimport
@@ -224,16 +224,39 @@
 lication
+, bootstrap%0Abootstrap()
 %0Aapplica

Call bootstrap() in WSGI. Otherwise the blueprints are not registered.