catch IndexError when creating thumbnail
[mygpo.git] / mygpo / shell.py
blobd0517ffa6f631b80bc3b458694ab6e487072952a
2 # This file collects imports that can be useful when doing maintenance stuff
3 # from the shell.
4 # You can then just run
6 # from mygpo.shell import *
8 # to get all relevant classes, and an instantiated db object.
11 from mygpo.core.models import *
12 from mygpo.users.models import *
13 from mygpo.directory.models import *
14 from mygpo.share.models import *
16 from mygpo.db.couchdb import get_main_database
18 db = get_main_database()
20 from django.core.cache import cache