11 lines
269 B
Python
11 lines
269 B
Python
|
from django.conf import settings
|
||
|
import os
|
||
|
|
||
|
def runshell():
|
||
|
args = ''
|
||
|
args += settings.DATABASE_USER
|
||
|
if settings.DATABASE_PASSWORD:
|
||
|
args += "/%s" % settings.DATABASE_PASSWORD
|
||
|
args += "@%s" % settings.DATABASE_NAME
|
||
|
os.execvp('sqlplus', args)
|