Run migrate in main script
This commit is contained in:
parent
36ec3ae4e5
commit
d845b53429
1 changed files with 4 additions and 0 deletions
|
@ -1,7 +1,11 @@
|
|||
import django
|
||||
import uvicorn
|
||||
from django.core.management import call_command
|
||||
|
||||
|
||||
def run():
|
||||
django.setup()
|
||||
call_command('migrate')
|
||||
uvicorn.run("mwmbl.asgi:application", host="0.0.0.0", port=5000)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue