app/django/db/backends/sqlite3/client.py
author Daniel Hans <Daniel.M.Hans@gmail.com>
Thu, 29 Oct 2009 22:58:06 +0100
changeset 3066 45e2c3e70761
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
If checkCanOrgAdminOrMentorEdit function does not find a task, the user is redirected to 404 page.

from django.db.backends import BaseDatabaseClient
from django.conf import settings
import os

class DatabaseClient(BaseDatabaseClient):
    executable_name = 'sqlite3'

    def runshell(self):
        args = ['', settings.DATABASE_NAME]
        os.execvp(self.executable_name, args)