Is it possible to reload a Django application without stopping it?
I have a Django 1.11 application as a service (Saas) application with one single postgresql database. When a new user is created, it automatically creates two tables associated with it. Part of the code:
def handle(self, *args, **options):
Client.objects.create(...attributes...)
call_command('makemigrations', interactive=False)
call_command('migrate', interactive=False)
But when I go to the admin site, the new tables are not displayed, I need to stop and restart the server. Is there a way to restart it without stopping the service?
+3
source to share
No one has answered this question yet
Check out similar questions: