mirror of
https://github.com/Hopiu/django.git
synced 2026-04-07 00:21:00 +00:00
12 lines
293 B
Python
12 lines
293 B
Python
import subprocess
|
|
|
|
from django.db.backends import BaseDatabaseClient
|
|
|
|
|
|
class DatabaseClient(BaseDatabaseClient):
|
|
executable_name = 'sqlite3'
|
|
|
|
def runshell(self):
|
|
args = [self.executable_name,
|
|
self.connection.settings_dict['NAME']]
|
|
subprocess.call(args)
|