📜 ⬆️ ⬇️

Restart daemon mod_wsgi

I put it off for a long time, so the whole Apache reload is :)

 @never_cache def restart(request): '''   ''' if request.META['mod_wsgi.process_group'] != '': import signal, os os.kill(os.getpid(), signal.SIGINT) ret = 'restarted' else: ret = 'not find porcess_group' return HttpResponse(ret, mimetype='text/plain') 


UP: touch yourfile.wsgi

')

Source: https://habr.com/ru/post/56029/


All Articles