1 2 3 4 5 6
from django.conf import settings import os def runshell(): args = ['', settings.DATABASE_NAME] os.execvp('sqlite3', args)