def restart_httpd_all(request):
 notifier().restart('http')
 notifier().restart('django')
 return HttpResponse('OK')

def restart_httpd_all ( request ) : notifier ( ) . restart ( 'http' ) notifier ( ) . restart ( 'django' ) return HttpResponse ( 'OK' )
restart nginx as well as django .