diff --git a/community/__init__.py b/community/__init__.py index 65fc9069..43b477a7 100644 --- a/community/__init__.py +++ b/community/__init__.py @@ -3,8 +3,5 @@ from __future__ import unicode_literals __version__ = '0.0.1' -from .routing import install_regex_converter -install_regex_converter() - # load the methods from the lms api from .lms import api # noqa diff --git a/community/hooks.py b/community/hooks.py index bdc9e026..5cbe5f72 100644 --- a/community/hooks.py +++ b/community/hooks.py @@ -129,9 +129,7 @@ scheduler_events = { # Add all simple route rules here primary_rules = [ - {"from_route": "/sketches", "to_route": "sketches"}, {"from_route": "/sketches/", "to_route": "sketches/sketch"}, - {"from_route": "/courses", "to_route": "courses"}, {"from_route": "/courses/", "to_route": "courses/course"}, {"from_route": "/courses//", "to_route": "courses/topic"}, {"from_route": "/courses//", "to_route": "courses/topic"} @@ -142,13 +140,18 @@ whitelist = [ "/login", "/update-password", "/update-profile", - "/third-party-apps" + "/third-party-apps", + "/website_script.js", + "/courses", + "/sketches", + "/admin", + "/socket.io", ] whitelist_rules = [{"from_route": p, "to_route": p[1:]} for p in whitelist] # regex rule to match all profiles profile_rules = [ - {"from_route": "/", "to_route": "profiles/profile"}, + {"from_route": "/", "to_route": "profiles/profile"}, ] website_route_rules = primary_rules + whitelist_rules + profile_rules