from ._utils import *


settings = {
    'DEBUG': True,
    'INSTALLED_APPS': (
        'django.contrib.admin',
        'django.contrib.auth',
        'django.contrib.contenttypes',
        'django.contrib.sessions',
        'armstrong.core.arm_content',
        'armstrong.core.arm_content.tests.arm_content_support',
        'armstrong.apps.embedded_video',
    ),
    'AUTH_PROFILE_MODULE': 'arm_content_support.SimpleProfile',
    'ROOT_URLCONF': 'armstrong.core.arm_content.tests.arm_content_support.urls',
    'ARMSTRONG_EXTERNAL_VIDEO_BACKEND': 'armstrong.core.arm_content.video.backends.YouTubeBackend'
}


@task
def clean():
    local('find . -name "*.py[co]" -exec rm {} \;')


@task
def pep8():
    local('find ./armstrong -name "*.py" | xargs pep8', capture=False)


@task
def test():
    with html_coverage_report():
        run_tests(settings, 'arm_content_support', 'arm_content', 'embedded_video')


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

@@ -919,25 +919,22 @@
 ask%0Adef 
-runserver
+syncdb
 ():%0A    
@@ -1088,41 +1088,362 @@
 b%22)%0A
-    runner.call_command(%22runserver
+%0A%0A@task%0Adef runserver():%0A    from d51.django.virtualenv.base import VirtualEnvironment%0A    runner = VirtualEnvironment()%0A    runner.run(settings)%0A    runner.call_command(%22runserver%22)%0A%0A%0A@task%0Adef shell():%0A    from d51.django.virtualenv.base import VirtualEnvironment%0A    runner = VirtualEnvironment()%0A    runner.run(settings)%0A    runner.call_command(%22shell
 %22)%0A

Add syncdb/shell into fabfile