I need to call Popen
command from my Django app
it works on development machine but it is not executing when I try to call that command when application is served by Apache
no error either it just finishes silently.
def backup():
filename = datetime.datetime.now().strftime("%d-%b-%Y_%I-%M-%S-%p")
Popen(
'pg_dump --dbname=postgresql://postgres:secret@127.0.0.1:5432/db -f D:/backup/%s' % filename,
shell=True
)
Can someone please tell me what is wrong .