Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bootstrapper.py:
- from stirling.lib.db import connection
- from foo_mod import bar_fun
- connection = create_db_conn()
- bar_fun()
- foo_mod.py:
- from stirling.lib.db import connection
- def bar_fun():
- connection //database instance created in bootstrapper
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement