From 8e9ad7d64587265bd707c594ffdb3d0279b485a9 Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 28 Dec 2017 01:18:50 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E4=BF=AE=E6=94=B9runserver=E8=BF=90?= =?UTF-8?q?=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run_server.py b/run_server.py index fe11bea94..dcc61c8b7 100644 --- a/run_server.py +++ b/run_server.py @@ -38,8 +38,8 @@ except: def make_migrations(): print("Check database change, make migrations") - os.chdir(os.path.join(BASE_DIR, 'utils')) - subprocess.call('bash make_migrations.sh', shell=True) + os.chdir(os.path.join(BASE_DIR, 'apps')) + subprocess.call('python manage.py migrate', shell=True) def collect_static():