Monday, November 24, 2014

Re: How do I supply an appropriate application.wsgi to Gunicorn?

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJUc6uZAAoJEC0ft5FqUuEhPfAP/1n9kb4y/REu//EH4yBizgKj
siyeuFpLzWIxAVyfMn4JdFhLd4tEIM/M3UN2wAm2cPgag/y0SbbZcPIhxyHrUJ0e
jF+7fHcRUWzRINPJlkIE3ci8lFNkaNCMEWiznEiWezEFzUwLSHySGkhCIFgUg50+
vFNgjnVyi4RZNtZKvXn/cCAihz9IZU1Kx76a8R+bUGkdlR3ON5nP/utVo3mOjUyd
uaGNausG4KFalLmB1Q7zUgK5MBe55YIIodY7A5VZw43t2/6t8wm0Rs36oG1ut8k9
5xfsGS06q8xbKSujjIMqSyBbvZXRhGKNySFWt8JxkGlRU0v1tAYr9yOFacLfg2ck
C7theID/AZYsTuRviay9JE8L4BHSppO+nH3fnQpI+m8ENR4MfzX+jLS75Qck1uf5
R1BR9dBqHGzgsX0U4sxkBKAXV6uwZpePiCBWVeRQGvjbByAsAetajnOn15tMcHv6
E3u0dy50kJh58+uTBS8Q8JnsuA9CI3tnYNDANTAl0qvD1J+Y/ZcPWlGdQTLRhcQO
pTzSO0INEVpp/B7LmzhxsjN/7gyC/b48R5ybj7yvCESp02RMADiUkFaTSnQFwIz6
n0gvYXgRtR1ZnK8xHtClDqIqR5RnD9nAgeEAojWJ/6or6/jwuHJhGImbi+/wgw8L
Y12mBTxHaVFG2kDo9BOA
=+XeC
-----END PGP SIGNATURE-----
On 11/24/2014 03:00 PM, Carl Meyer wrote:
> On 11/24/2014 02:56 PM, Christos Jonathan Seth Hayward wrote:
>> Thanks so much!
>>
>> Could you confirm the invocation?
>>
>> cjsh@ps306627:~/cynthia$ gunicorn cynthia.wsgi 0.0.0.0:7777
>>
>> usage: gunicorn [OPTIONS] [APP_MODULE]
>>
>> gunicorn: error: No application module specified.
>
> That's the right invocation, but you need your python path set up to
> include the directory that has `manage.py` in it (when you actually run
> a `manage.py` command, this happens automatically, but not when you run
> gunicorn).
>
> There are a variety of ways that can be done, the simplest is to run
> your gunicorn command from the same directory that contains `manage.py`
> and set the PYTHONPATH env var:
>
> PYTHONPATH=`pwd` gunicorn cynthia.wsgi 0.0.0.0:7777

Sorry, I was focused on the Python issues, didn't notice that you're
trying to pass a bind address without using the `-b` option. This is
what you want:

PYTHONPATH=`pwd` gunicorn -b 0.0.0.0:7777 cynthia.wsgi

Carl

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5473AB99.8040101%40oddbird.net.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment