2 # This file collects imports that can be useful when doing maintenance stuff
4 # You can then just run
6 # from mygpo.shell import *
8 # to get all relevant classes, and an instantiated db object.
11 from django
.core
.cache
import cache
13 # Auto-import all Models
14 from django
.apps
import apps
15 from django
.utils
.module_loading
import import_string
17 for m
in apps
.get_models():
18 import_string("{module}.{model}".format(module
=m
.__module
__, model
=m
.__name
__))