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.
 
 
 
 

13 lines
305 B

  1. import subprocess
  2. from django.db.backends.base.client import BaseDatabaseClient
  3. class DatabaseClient(BaseDatabaseClient):
  4. executable_name = 'sqlite3'
  5. def runshell(self):
  6. args = [self.executable_name,
  7. self.connection.settings_dict['NAME']]
  8. subprocess.call(args)