datacommonsorg / website

Code for the Data Commons website
https://datacommons.org
Apache License 2.0
24 stars 82 forks source link

Update NL server __init__.py #4296

Closed shifucun closed 4 months ago

shifucun commented 4 months ago

All the module import in nl_server/__init__.py gets executed when importing any module under nl_server/. This makes build embedding tool depends on flask, for example.

This PR moves __init__.py to flask.py to solve that issue. There is no need to have the create_app() function live in __init__.py anyway.