cjsh@ps306627:~/cynthia$ find . -name \*.wsgi
cjsh@ps306627:~/cynthia$ python manage.py shell
Python 2.6.6 (r266:84292, Aug 12 2014, 07:57:07)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import django
>>> dir(django)
['VERSION', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', 'conf', 'contrib', 'core', 'db', 'dispatch', 'forms', 'get_version', 'http', 'middleware', 'shortcuts', 'template', 'templatetags', 'test', 'utils', 'views']
>>> django.VERSION
(1, 6, 5, 'final', 0)
>>>
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.
Christos Jonathan Seth Hayward, an Orthodox Christian author. Amazon / Kindle • Author • Author Bio • The Classic Orthodox Bible • Email • Facebook • Fan Page• Github • Google Plus • LinkedIn • Main Website • Professional • Twitter • What's New? 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_B5RwmAdAmotBkmmARKZAED%3DKZyjeUk4a_Xz%3Dux%3DbA0d%2BiQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment