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)

iQIcBAEBCAAGBQJUc6IfAAoJEC0ft5FqUuEhPy0P/1NEeu2/QlCDOkF3C/EQQSOD
t8REWMUh98XCIah1RksBQYcJbP6ha2aSuyN61XYmtEOnFhxQFnodnJcdr0FKMyAz
8n8GRi+3lyVeXI8uySAvuwb0cSMXuLQk8JaLn2awT6GrbKwuThGyGjNkjIiQFJyV
WDgwc6BzZL5X1TwZMiE+krJByRxPQ3HXvBnEI7e3ys5pcCnTLn4PqM9dxU2rY+Za
0Hf+Xe4rJfna2rp42Ik+SaNkbhwQmOPPW+bojGjzrKVNoabfhfFCTwfwaXZr2Mtl
raJts6UDTFR4m2ovFqGteONkiJdv1fymAodAlRzSzDIU/eRGne1LwR+l/QhUgyR9
39U+hAMCVmytWbo5erEyt0PLvlgkr2r1yZq/1QgITzCF6vMtSkLOpB6lwSIlC2qu
kPmpxreXF3xMV7JBwfKK0ErKnQz0QTeQkOL/XA9I1eok7463Ix/58OcD7g+9zNaS
yuoscG+VK9HCkPBga0/2HQrXRVa0RYoqZ3fnxdtTU5aRudTlquYl9wyCU0fpiBw8
URQkOU9RWXIBsE3vxD1KXrkEvyEaMOEbkupTq3JqQ7lkWJJ+D1B2uH4oKgB33uKb
pbipAmUvA+yHqjca0ecOA6uicsX7n7L5WuTG28Qzm2tZvNo791EcfvFEasQEbv89
uE25kfJa894OKzWD+mNz
=f/R5
-----END PGP SIGNATURE-----
Hi,

On 11/24/2014 02:19 PM, Christos Jonathan Seth Hayward wrote:
> From
> http://stackoverflow.com/questions/27113466/how-can-i-deploy-django-gunicorn-under-apache-proxy
> :
>
> 've run through the documentation and am hitting the same pages over and
> over again. At present I've found documentation to run off an existing
> myapp.wsgi file, but documentation for how to make an appropriate wsgi file
> is a little harder to find.
>
> If I want to make, proxied by Apache, the equivalent of, on an older
> version of Gunicorn etc.:
>
> python manage.py run_gunicorn 0.0.0.0:8888
>
> what should I be doing to supply a WSGI file for:
>
> gunicorn project.wsgi:application

That depends a bit on your version of Django. For any Django version
since 1.4, 'django-admin.py startproject' should generate a wsgi.py file
in your project. If your project doesn't have one, you can run
'startproject' to quickly see what one should look like and copy it into
your project.

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/5473A21F.8050801%40oddbird.net.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment