frappe app doesn't load all python modules of all the apps on startup. It loads the hooks.py only if it is not already cached. Because of this the code to install the regex coverter to not running, causing errors. Fixed it by replacing the regex route with a string route. The issue is it also matches the paths like `socket.io` and `website_script.js` etc. Handled that by whitelisting those routes.
8 lines
152 B
Python
8 lines
152 B
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
__version__ = '0.0.1'
|
|
|
|
# load the methods from the lms api
|
|
from .lms import api # noqa
|