def prepare_page(self, *args, **kwargs):
        subprocess.call(["python", "manage.py", "syncdb", "--migrate", "--noinput"])

        if self.PROCESS is not None:
            self.PROCESS.terminate()

        self.PROCESS = subprocess.Popen(["python", "manage.py", "runserver"])

        time.sleep(4)
        super(DjangoBackend, self).prepare_page(*args, **kwargs)
dataset/ETHPy150Open ckcollab/polished/polished/backends/django.py/DjangoBackend.prepare_page/original