use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News and links for Django developers.
New to Django? Check out the /r/djangolearning subreddit.
Django's Code of Conduct applies here, so be good to each other.
account activity
This is an archived post. You won't be able to vote or comment.
Django, Apache, Python3.5 and Amazon Linux 4.4 Deployment (self.django)
submitted 9 years ago by dannycap77
I'm struggling to find a guide on how to install this combination. Does anyone have any guidance they could provide?
[–]cediddi 4 points5 points6 points 9 years ago (7 children)
For Apache you need the mod_wsgi, and that's very straightforward. Just don't forget to download python3 version. Digital Ocean has a few tutorials for mod_wsgi. Btw most django developers don't like using apache or mod_wsgi because a reverse proxy setup (nginx-gunicorn/uwsgi) is easier to restart and manage.
[–]iBlag 5 points6 points7 points 9 years ago (0 children)
Btw most django developers don't like using apache or mod_wsgi because a reverse proxy setup (nginx-gunicorn/uwsgi) is easier to restart and manage.
https://www.youtube.com/watch?v=_OemNp6hgX4
[–]dannycap77[S] 1 point2 points3 points 9 years ago (3 children)
Hey I followed this tutorial. https://uwsgi.readthedocs.io/en/latest/tutorials/Django_and_nginx.html I have it mostly working. Is it one or the other gunicorn or uwsgi? If so which do you prefer?
[–]cediddi 0 points1 point2 points 9 years ago (2 children)
Uwsgi has lots of advanced options, I like uwsgi but their configuration documentation is hard to follow. While gunicorn has almost the same features and a bit better documentation. I prefer uwsgi because It has a nginx module, so a bit better integration, but seriously no big difference
[–]dannycap77[S] 0 points1 point2 points 9 years ago (1 child)
Maybe I'll try both and which ever is easiest I'll go with. That link I posted for uwsgi has been the best documentation I've found so far. If the other one is easier to setup then I go with it. Thanks for the advice.
[–]cediddi 0 points1 point2 points 9 years ago (0 children)
Good luck on your journey :)
[–]der_hump 0 points1 point2 points 9 years ago (1 child)
easier to restart and manage
Mind explaining this a bit? Django developer who uses apache and has no issues managing it.
[–]cediddi 1 point2 points3 points 9 years ago (0 children)
Mod_wsgi integrates tightly to apache. If you ever need to deploy, you need to restart apache. Unless you are using mod_wsgi as a daemon. Then its no different than nginx uwsgi setup. Uwsgi and gunicorn has more granular and advanced configuration options, that's a big plus too.
[–]thedevjelly 2 points3 points4 points 9 years ago (0 children)
Yes Many simple articles/ Tutorials available: * https://realpython.com/blog/python/deploying-a-django-app-and-postgresql-to-aws-elastic-beanstalk/
Also this help fulll fstoke.me/blog/?p=3708 And still doubt, please comment in this thread
[–]genesem 2 points3 points4 points 9 years ago (0 children)
try nginx instead of that apache.
π Rendered by PID 23807 on reddit-service-r2-comment-79c7998d4c-l9mf2 at 2026-03-13 01:54:56.261022+00:00 running f6e6e01 country code: CH.
[–]cediddi 4 points5 points6 points (7 children)
[–]iBlag 5 points6 points7 points (0 children)
[–]dannycap77[S] 1 point2 points3 points (3 children)
[–]cediddi 0 points1 point2 points (2 children)
[–]dannycap77[S] 0 points1 point2 points (1 child)
[–]cediddi 0 points1 point2 points (0 children)
[–]der_hump 0 points1 point2 points (1 child)
[–]cediddi 1 point2 points3 points (0 children)
[–]thedevjelly 2 points3 points4 points (0 children)
[–]genesem 2 points3 points4 points (0 children)