Monday, November 24, 2014

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

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.

cjsh@ps306627:~/cynthia$ gunicorn cynthia.wsgi:application 0.0.0.0:7777

usage: gunicorn [OPTIONS] [APP_MODULE]

gunicorn: error: No application module specified.

cjsh@ps306627:~/cynthia$ gunicorn cynthia.wsgi:cynthia 0.0.0.0:7777

usage: gunicorn [OPTIONS] [APP_MODULE]

gunicorn: error: No application module specified.


On Mon, Nov 24, 2014 at 3:45 PM, Carl Meyer <carl@oddbird.net> wrote:


On 11/24/2014 02:38 PM, Christos Jonathan Seth Hayward wrote:
> Ok; wonder if I should upgrade Django.
>
> I just ran a startproject earlier today (I can re-create it; I was just
> trying to get it running and see the start page in my browser before going
> further).
>
> cjsh@ps306627:~/cynthia$ find . -name \*.wsgi

Your Django version is fine. The problem is that you're expecting to
find a file with the `.wsgi` extension. The file Django generates is
called `myproject/wsgi.py`, thus its dotted Python import path (which is
what you pass to gunicorn) is `myproject.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/5473A6EF.4090107%40oddbird.net.
For more options, visit https://groups.google.com/d/optout.



--
Christos Jonathan Seth Hayward
Christos Jonathan Seth Hayward, an Orthodox Christian author.

If you read just one of my books, you'll want The Best of Jonathan's Corner (Kindle).

--
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/CAE6_B5RrTBV5NB8cROvV%3D%2B_owyVDtfZrTAwvmSLrXd3hCXfMkw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment