SHARE
TWEET

Untitled

a guest Aug 13th, 2017 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
Top