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