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)

iQIcBAEBCAAGBQJUc6bvAAoJEC0ft5FqUuEh0hUP/jOhN0iZluJ/FzGKW0yGdEri
oCK5SD4eJVV3yz+jXvAivGQilP+NLQN/SjhEl2/LgseVELhYrZEbx22JiywDL5Hc
vbOImiekXss/S+ez6YSrDWzovC4fsJa6MtCF/Up2DEWn69cpiVoPkzw/1tiad72/
WoSJh8q+Jrtn2VFpitfw75sV48AoiaCIHKKl3jUhPWI+kDqGwiwRUhhL90SmfjrC
tQgz21ACVg/wu3/SAf6OTcet/55hCpgqRoLayC9bTGuG/4wGVFb/SlXCZiN7hbe0
9wpbPAEXb9D9sWp4dRf2QpZXNtw8btPAcl4xdCCxf7FwKon78WvVp02fSfnnzKWL
LgDyPMQofzmWNqT6Ue+jXuXu07StGZzkD3HaoCZ2dqD4M1W7gTAhDLuNxaPaQ7KO
F6xeNKxF0fqyWV6g7xaTOQNpy5hIntnSQh3navrAc0Vm+gS7G9yqLEOJG3jr9fVE
EZBbxYebJsT82P5xLq5FOq8KwS5uTjHUqQxWKjwNqT5Ywohsru7ZG6ekBGxm0UMm
+fNkIjUlGUf0zA6UQGHJN5rLoLWlH90FlfLRZGYXjLQKtZmEBJwzsoUPaHw0FsDf
uHUuAUI3cZ5QwPeyc2vgUkFp4zZAWEAWsM54syaKH8KBtGht1eezof3gZ6RG8z1w
Q3kk3qVPKXmV7OBFD8ss
=mkPF
-----END PGP SIGNATURE-----
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.

No comments:

Post a Comment