diff options
author | Michael Elkins <melkins@tislabs.com> | 2013-03-26 23:22:17 +0000 |
---|---|---|
committer | Michael Elkins <melkins@tislabs.com> | 2013-03-26 23:22:17 +0000 |
commit | e5457ccce615c8aeb31aa6e9e7dddd2d11282958 (patch) | |
tree | 5b23edeafd7ba1d14997e8251b113349ebaf8c22 /rpkid/rpki/gui/script_util.py | |
parent | 6844999284118747c12252e36f78cbaea1239afe (diff) |
setting INSTALLED_APPS is not required when accessing existing db tables.
svn path=/trunk/; revision=5232
Diffstat (limited to 'rpkid/rpki/gui/script_util.py')
-rw-r--r-- | rpkid/rpki/gui/script_util.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/rpkid/rpki/gui/script_util.py b/rpkid/rpki/gui/script_util.py index f71073ac..4c93ca4e 100644 --- a/rpkid/rpki/gui/script_util.py +++ b/rpkid/rpki/gui/script_util.py @@ -14,6 +14,8 @@ def setup(): Configure Django enough to use the ORM. """ cfg = parser(section='web_portal') + # INSTALLED_APPS doesn't seem necessary so long as you are only accessing + # existing tables. settings.configure( DATABASES={ 'default': { @@ -23,10 +25,4 @@ def setup(): 'PASSWORD': cfg.get('sql-password'), } }, - INSTALLED_APPS=( - 'rpki.gui.app', - 'rpki.gui.cacheview', - 'rpki.gui.routeview', - 'rpki.irdb' - ) ) |