clean backend finding

This commit is contained in:
Steve Pulec 2013-06-25 12:45:24 -04:00
parent eb70174ed5
commit 7ef6a1c44e

View File

@ -24,7 +24,8 @@ class RegexConverter(BaseConverter):
def configure_urls(service):
backend = globals()["{}_backend".format(service)]
module = sys.modules[__name__]
backend = getattr(module, "{}_backend".format(service))
from werkzeug.routing import Map
# Reset view functions to reset the app
app.view_functions = {}