title: uwsgi django at boot fail to start without postgresql
body: <p>Debian server, uwsgi at boot started by a crontab @reboot.</p>
  
  <p>return this in <strong>uwsgi.log</strong>:</p>
  
  <blockquote>
    <p>ile
    "/usr/local/lib/python2.7/dist-packages/django/db/backends/postgresql/base.py",
    line 175, in get_new_connection
        connection = Database.connect(**conn_params)   File "/usr/lib/python2.7/dist-packages/psycopg2/<strong>init</strong>.py", line 164, in
    connect
        conn = _connect(dsn, connection_factory=connection_factory, async=async) django.db.utils.OperationalError: could not connect to
    server: Connection refused    Is the server running on host "127.0.0.1"
    and accepting     TCP/IP connections on port 5432?</p>
    
    <p>Thu Mar 24 05:19:02 2016 - unable to load app 0 (mountpoint='')
    (callable not found or import error) Thu Mar 24 05:19:02 2016 - <strong>* no
    app loaded. going in full dynamic mode <em></strong> Thu Mar 24 05:19:02 2016 -
    <strong></em> uWSGI is running in multiple interpreter mode *</strong></p>
  </blockquote>
  
  <p>if I wait that also postgresql start and restart uwsgi all is working.</p>
  
  <p>Are there way to tell uwsgi to wait for postgresql?</p>