works on nginx with uwsgi and posrgres