#!/usr/bin/env python
import os, sys


if __name__ == '__main__':
    os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.project.settings'
    from django.core.management import execute_from_command_line
    execute_from_command_line(['./testserver.py', 'runserver'])

Add testserver.py for running test-project server.