diff options
author | 2018-03-29 16:41:05 +0100 | |
---|---|---|
committer | 2018-03-29 16:41:05 +0100 | |
commit | 24c7be0894d459c06862c3de6d3c038f517b44e5 (patch) | |
tree | 78711d55c543ebc5d7f0d04a602085711a325505 /pysite/route_manager.py | |
parent | fixes path to static files in subdomains (#46) (diff) |
Fix error routing and more work on static files
Diffstat (limited to 'pysite/route_manager.py')
-rw-r--r-- | pysite/route_manager.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pysite/route_manager.py b/pysite/route_manager.py index 949d4ed9..488c596f 100644 --- a/pysite/route_manager.py +++ b/pysite/route_manager.py @@ -66,12 +66,12 @@ class RouteManager: for sub in self.subdomains: sub_blueprint = Blueprint(sub, __name__, subdomain=sub) self.log.debug(f"Loading Blueprint: {sub_blueprint.name}") + self.load_views(sub_blueprint, f"pysite/views/{sub}") try: self.app.register_blueprint(sub_blueprint) except Exception: logging.getLogger(__name__).exception(f"Failed to register blueprint for subdomain: {sub}") - else: - self.load_views(sub_blueprint, f"pysite/views/{sub}") + # exit(1) # Load the websockets self.ws_blueprint = Blueprint("ws", __name__) |