I tried my best to follow the various guides out there, but the official
documentation here
https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/modwsgi/ has
different instructions than the instructions here,
https://www.digitalocean.com/community/articles/using-mod_wsgi-to-serve-applications-on-ubuntu-12-04
I have been at this for over a week now, and I can't figure out how to
deploy django with mod_wsgi and apache on a linux web server.
Can someone give or point to me a step to step instruction on how to deploy
django?
Specifically,
1. what do I do with the httpd.conf file?
2. wsgi file? what's the difference between "making a wsgi file" and a
wsgi.py file? For example
"wsgi file"
import os
import sys
sys.path.append('~/public_html/domain1.com/')
os.environ['DJANGO_SETTINGS_MODULE'] = 'MyTestProject.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
"wsgi.py"
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mywebsite.settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
Thank you for any help.
--
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 [email protected].
To post to this group, send email to [email protected].
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/54c378a2-4212-4e7f-b5bb-2c816ed7655a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.