Added media template block in nginx template
Correctly create postgres database