[Update] 修改runserver运行

This commit is contained in:
ibuler 2017-12-28 01:18:50 +08:00
parent 825edadc13
commit 8e9ad7d645

View File

@ -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():