Advertisement
Guest User

Untitled

a guest
Aug 13th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. bootstrapper.py:
  2. from stirling.lib.db import connection
  3. from foo_mod import bar_fun
  4. connection = create_db_conn()
  5. bar_fun()
  6.  
  7. foo_mod.py:
  8. from stirling.lib.db import connection
  9. def bar_fun():
  10.     connection //database instance created in bootstrapper
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement