Bump gevent from 21.8.0 to 21.12.0
[mygpo.git] / mygpo / shell.py
blobb44e61ac285c2555238992827770d8c718852ffe
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 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__))