def runserver(): from d51.django.virtualenv.base import VirtualEnvironment runner = VirtualEnvironment() runner.run(settings) runner.call_command("syncdb") runner.call_command("runserver")
def shell(): from d51.django.virtualenv.base import VirtualEnvironment v = VirtualEnvironment() v.run(settings) v.call_command('shell')