From 99451a0525a53e7f7810461652dbacc6fef4c9d9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20K=C3=B6gl?= Date: Mon, 15 Oct 2012 21:43:22 +0200 Subject: [PATCH] add shell.py with useful imports for interactive maintenance --- mygpo/shell.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 mygpo/shell.py diff --git a/mygpo/shell.py b/mygpo/shell.py new file mode 100644 index 00000000..8fa0b28a --- /dev/null +++ b/mygpo/shell.py @@ -0,0 +1,18 @@ +# +# This file collects imports that can be useful when doing maintenance stuff +# from the shell. +# You can then just run +# +# from mygpo.shell import * +# +# to get all relevant classes, and an instantiated db object. +# + +from mygpo.core.models import * +from mygpo.users.models import * +from mygpo.directory.models import * +from mygpo.share.models import * + +from mygpo.couch import get_main_database + +db = get_main_database() \ No newline at end of file -- 2.11.4.GIT