app/django/db/backends/oracle/client.py
author Todd Larsen <tlarsen@google.com>
Fri, 19 Sep 2008 05:15:20 +0000
changeset 170 1fadf6e0348d
parent 54 03e267d67478
child 323 ff1a9aa48cfd
permissions -rw-r--r--
Add /site/user/profile Developer view for editing arbitrary User entities. Update /user/profile edit() view to fix TODO about updating the URL when a POST of the form changes the link_name of the User. Add a Create New User link to the base.html sidebar mock-up.

from django.conf import settings
import os

def runshell():
    dsn = settings.DATABASE_USER
    if settings.DATABASE_PASSWORD:
        dsn += "/%s" % settings.DATABASE_PASSWORD
    if settings.DATABASE_NAME:
        dsn += "@%s" % settings.DATABASE_NAME
    args = ["sqlplus", "-L", dsn]
    os.execvp("sqlplus", args)