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

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):

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