Tmp
This commit is contained in:
parent
223447fc95
commit
288d6cd699
|
|
@ -1,14 +1,17 @@
|
|||
from django.core.management.base import BaseCommand
|
||||
|
||||
from django.apps import apps
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = 'Transfer data between databases'
|
||||
|
||||
def handle(self, *args, **options):
|
||||
if options['short']:
|
||||
import __hello__
|
||||
else:
|
||||
import this
|
||||
for app in apps.get_app_configs():
|
||||
if app.name == "location":
|
||||
print(app.name, ":")
|
||||
|
||||
print(dir(app))
|
||||
for model in app.get_models():
|
||||
print("\t", model)
|
||||
|
||||
def add_arguments(self, parser):
|
||||
parser.add_argument(
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user