Setting up Apache to be the web server for apache for Django 1.7 and python 3.3

83 views
Skip to first unread message

robert brook

unread,
Oct 3, 2014, 8:42:29 AM10/3/14
to django...@googlegroups.com
Can someone point me to a document on how to perform a setup for Apache.

What modules would it be good to install ( I presume as a site package for Python)?

What should the settings.py reflect to accept calls from Apache?

What do I need to configure in the apache config file?

What port should I use?

I assume that once I use Apache I no longer need to run python manage.py runserver, because I will no longer
be using the local server, but now the Apache server?

Any other suggestions would be helpful.

Is mod_wsgi for a medium traffic web site for https  the way to go?

Thanks

Timothy W. Cook

unread,
Oct 3, 2014, 9:02:23 AM10/3/14
to django...@googlegroups.com
Of course http://www.giyf.com/  but unless you have some very compelling need to use Apache.  This may be a better choice.  http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/ 
I found it to be much easier to setup and maintain. 



--
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...@googlegroups.com.
To post to this group, send email to django...@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/f5cf6b83-7a90-4ffa-84de-c41aef1c68b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

============================================
Timothy Cook
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook

robert brook

unread,
Oct 3, 2014, 10:36:15 AM10/3/14
to django...@googlegroups.com
The requirements of the organization is to use Apache

Collin Anderson

unread,
Oct 3, 2014, 10:55:20 AM10/3/14
to django...@googlegroups.com

If you're using ubuntu (though I assume you're not, based on your python version,) you just run:
sudo apt-get install apache2 libapache2-mod-wsgi-py3

> What should the settings.py reflect to accept calls from Apache?
You shouldn't need to do any additional configuration in django, besides the usual deployment configuration:

> What port should I use?
If you're using ssl, port 443 is the standard port to listen on, if that answers your question.

> I assume that once I use Apache I no longer need to run python manage.py runserver, because I will no longer be using the local server, but now the Apache server?
Basically, runserver is for development, apache is for production. You may still want to use the runserver for testing changes to your code.

> Is mod_wsgi for a medium traffic web site for https  the way to go?
If you're not going to use nginx, I'd recommend the event-mpm if you have the choice, which should help performance.

Reply all
Reply to author
Forward
0 new messages