Deploying django with Nginx
I would like to know has anyone been successful to run django on nginx? I have several django apps running on Apache2 on suse 11.4 and i would like to migrate them to nginx. Are there any modules that django requires in order to successfully run on nginx.
apache-http-server django
add a comment |
I would like to know has anyone been successful to run django on nginx? I have several django apps running on Apache2 on suse 11.4 and i would like to migrate them to nginx. Are there any modules that django requires in order to successfully run on nginx.
apache-http-server django
it is really good question.
– Aragon
Apr 2 '12 at 12:20
add a comment |
I would like to know has anyone been successful to run django on nginx? I have several django apps running on Apache2 on suse 11.4 and i would like to migrate them to nginx. Are there any modules that django requires in order to successfully run on nginx.
apache-http-server django
I would like to know has anyone been successful to run django on nginx? I have several django apps running on Apache2 on suse 11.4 and i would like to migrate them to nginx. Are there any modules that django requires in order to successfully run on nginx.
apache-http-server django
apache-http-server django
asked Jul 7 '11 at 13:02
roykasaroykasa
234125
234125
it is really good question.
– Aragon
Apr 2 '12 at 12:20
add a comment |
it is really good question.
– Aragon
Apr 2 '12 at 12:20
it is really good question.
– Aragon
Apr 2 '12 at 12:20
it is really good question.
– Aragon
Apr 2 '12 at 12:20
add a comment |
4 Answers
4
active
oldest
votes
On of our setups runs a Django/NginX/gunicorn setup, which to be honnest runs very well. We have more than 30k users per day. I used the following tutorial:
http://senko.net/en/django-nginx-gunicorn/
1
The link is broken
– manu
Jul 15 '14 at 19:33
add a comment |
There are a lot of options. Just Googling Django nginx
will give you a good idea how people handle their Django sites. The easiest is to use Django's built-in FastCGI server. The most popular seems to be uWSGI (I constantly see people raving on about it). I use FastCGI and it works just fine for me.
But this should give you an idea of where to start.
https://code.djangoproject.com/wiki/ServerArrangements#nginx
The two links near the top of this section should help explain more.
add a comment |
nginx is very flexible and very nice when you use it with uwsgi so i think your best choice is uwsgi and nginx for serving Django, this is the for ubuntu setup tutorial and this is for CentOS 7
add a comment |
you can use nginx + uwsgi + django, This tutorial is here: https://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html?
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f307646%2fdeploying-django-with-nginx%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
On of our setups runs a Django/NginX/gunicorn setup, which to be honnest runs very well. We have more than 30k users per day. I used the following tutorial:
http://senko.net/en/django-nginx-gunicorn/
1
The link is broken
– manu
Jul 15 '14 at 19:33
add a comment |
On of our setups runs a Django/NginX/gunicorn setup, which to be honnest runs very well. We have more than 30k users per day. I used the following tutorial:
http://senko.net/en/django-nginx-gunicorn/
1
The link is broken
– manu
Jul 15 '14 at 19:33
add a comment |
On of our setups runs a Django/NginX/gunicorn setup, which to be honnest runs very well. We have more than 30k users per day. I used the following tutorial:
http://senko.net/en/django-nginx-gunicorn/
On of our setups runs a Django/NginX/gunicorn setup, which to be honnest runs very well. We have more than 30k users per day. I used the following tutorial:
http://senko.net/en/django-nginx-gunicorn/
answered Apr 2 '12 at 12:18
Ronald OldenburgerRonald Oldenburger
33634
33634
1
The link is broken
– manu
Jul 15 '14 at 19:33
add a comment |
1
The link is broken
– manu
Jul 15 '14 at 19:33
1
1
The link is broken
– manu
Jul 15 '14 at 19:33
The link is broken
– manu
Jul 15 '14 at 19:33
add a comment |
There are a lot of options. Just Googling Django nginx
will give you a good idea how people handle their Django sites. The easiest is to use Django's built-in FastCGI server. The most popular seems to be uWSGI (I constantly see people raving on about it). I use FastCGI and it works just fine for me.
But this should give you an idea of where to start.
https://code.djangoproject.com/wiki/ServerArrangements#nginx
The two links near the top of this section should help explain more.
add a comment |
There are a lot of options. Just Googling Django nginx
will give you a good idea how people handle their Django sites. The easiest is to use Django's built-in FastCGI server. The most popular seems to be uWSGI (I constantly see people raving on about it). I use FastCGI and it works just fine for me.
But this should give you an idea of where to start.
https://code.djangoproject.com/wiki/ServerArrangements#nginx
The two links near the top of this section should help explain more.
add a comment |
There are a lot of options. Just Googling Django nginx
will give you a good idea how people handle their Django sites. The easiest is to use Django's built-in FastCGI server. The most popular seems to be uWSGI (I constantly see people raving on about it). I use FastCGI and it works just fine for me.
But this should give you an idea of where to start.
https://code.djangoproject.com/wiki/ServerArrangements#nginx
The two links near the top of this section should help explain more.
There are a lot of options. Just Googling Django nginx
will give you a good idea how people handle their Django sites. The easiest is to use Django's built-in FastCGI server. The most popular seems to be uWSGI (I constantly see people raving on about it). I use FastCGI and it works just fine for me.
But this should give you an idea of where to start.
https://code.djangoproject.com/wiki/ServerArrangements#nginx
The two links near the top of this section should help explain more.
answered Jul 7 '11 at 13:19
OliOli
337312
337312
add a comment |
add a comment |
nginx is very flexible and very nice when you use it with uwsgi so i think your best choice is uwsgi and nginx for serving Django, this is the for ubuntu setup tutorial and this is for CentOS 7
add a comment |
nginx is very flexible and very nice when you use it with uwsgi so i think your best choice is uwsgi and nginx for serving Django, this is the for ubuntu setup tutorial and this is for CentOS 7
add a comment |
nginx is very flexible and very nice when you use it with uwsgi so i think your best choice is uwsgi and nginx for serving Django, this is the for ubuntu setup tutorial and this is for CentOS 7
nginx is very flexible and very nice when you use it with uwsgi so i think your best choice is uwsgi and nginx for serving Django, this is the for ubuntu setup tutorial and this is for CentOS 7
answered Jan 17 '18 at 0:55
Ebrahim KarimiEbrahim Karimi
12
12
add a comment |
add a comment |
you can use nginx + uwsgi + django, This tutorial is here: https://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html?
add a comment |
you can use nginx + uwsgi + django, This tutorial is here: https://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html?
add a comment |
you can use nginx + uwsgi + django, This tutorial is here: https://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html?
you can use nginx + uwsgi + django, This tutorial is here: https://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html?
answered Jan 10 at 8:54
D.WangD.Wang
212
212
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f307646%2fdeploying-django-with-nginx%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
it is really good question.
– Aragon
Apr 2 '12 at 12:20