Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

client.py 331B

123456789101112
  1. import subprocess
  2. from django.db.backends.base.client import BaseDatabaseClient
  3. class DatabaseClient(BaseDatabaseClient):
  4. executable_name = 'sqlplus'
  5. def runshell(self):
  6. conn_string = self.connection._connect_string()
  7. args = [self.executable_name, "-L", conn_string]
  8. subprocess.check_call(args)