Re: rlwrap and manage.py dbshell

2018-06-28 Thread Dan Davis
Sure, but not everyone has rlwrap installed at all, or installed in the same place. I guess the thing to do is to use shutil.which first. I will prepare such a patch. On Thu, Jun 28, 2018 at 2:55 PM Adam Johnson wrote: > Won't this do the trick? > > diff --git a/django/db/backends/oracle/clie

Re: Fellow Reports - June 2018

2018-06-28 Thread Tim Graham
Week ending June 23, 2018 Triaged --- https://code.djangoproject.com/ticket/29505 - Impossible to set a Field's default value to a callable that takes an argument (accepted) https://code.djangoproject.com/ticket/29510 - QueryDict.copy() returns closed files when the type of file is Temp

Re: rlwrap and manage.py dbshell

2018-06-28 Thread Adam Johnson
Won't this do the trick? diff --git a/django/db/backends/oracle/client.py b/django/db/backends/oracle/client.py index 102e77fd15..1a0e1ca10b 100644 --- a/django/db/backends/oracle/client.py +++ b/django/db/backends/oracle/client.py @@ -8,5 +8,5 @@ class DatabaseClient(BaseDatabaseClient): de

rlwrap and manage.py dbshell

2018-06-28 Thread Dan Davis
After some work, I've modified django.db.backends.oracle.client in my virtual environment so that it will invoke Oracle's sqlplus within the excellent utility rlwrap. In my shell, I have * alias sqlplus='rlwrap --histsize 2000 sqlplus' However, it is not secure for a project like Django to use