diff options
Diffstat (limited to 'webapp/django/core/management/commands/dbshell.py')
-rw-r--r-- | webapp/django/core/management/commands/dbshell.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/webapp/django/core/management/commands/dbshell.py b/webapp/django/core/management/commands/dbshell.py new file mode 100644 index 0000000000..18faa6a130 --- /dev/null +++ b/webapp/django/core/management/commands/dbshell.py @@ -0,0 +1,10 @@ +from django.core.management.base import NoArgsCommand + +class Command(NoArgsCommand): + help = "Runs the command-line client for the current DATABASE_ENGINE." + + requires_model_validation = False + + def handle_noargs(self, **options): + from django.db import connection + connection.client.runshell() |