Deploying django with Nginx












2















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.










share|improve this question























  • it is really good question.

    – Aragon
    Apr 2 '12 at 12:20
















2















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.










share|improve this question























  • it is really good question.

    – Aragon
    Apr 2 '12 at 12:20














2












2








2


1






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.










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jul 7 '11 at 13:02









roykasaroykasa

234125




234125













  • 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





it is really good question.

– Aragon
Apr 2 '12 at 12:20










4 Answers
4






active

oldest

votes


















3














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/






share|improve this answer



















  • 1





    The link is broken

    – manu
    Jul 15 '14 at 19:33



















0














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.






share|improve this answer































    0














    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






    share|improve this answer































      0














      you can use nginx + uwsgi + django, This tutorial is here: https://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html?






      share|improve this answer























        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
        });


        }
        });














        draft saved

        draft discarded


















        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









        3














        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/






        share|improve this answer



















        • 1





          The link is broken

          – manu
          Jul 15 '14 at 19:33
















        3














        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/






        share|improve this answer



















        • 1





          The link is broken

          – manu
          Jul 15 '14 at 19:33














        3












        3








        3







        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/






        share|improve this answer













        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/







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 2 '12 at 12:18









        Ronald OldenburgerRonald Oldenburger

        33634




        33634








        • 1





          The link is broken

          – manu
          Jul 15 '14 at 19:33














        • 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













        0














        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.






        share|improve this answer




























          0














          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.






          share|improve this answer


























            0












            0








            0







            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.






            share|improve this answer













            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.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jul 7 '11 at 13:19









            OliOli

            337312




            337312























                0














                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






                share|improve this answer




























                  0














                  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






                  share|improve this answer


























                    0












                    0








                    0







                    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






                    share|improve this answer













                    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







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jan 17 '18 at 0:55









                    Ebrahim KarimiEbrahim Karimi

                    12




                    12























                        0














                        you can use nginx + uwsgi + django, This tutorial is here: https://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html?






                        share|improve this answer




























                          0














                          you can use nginx + uwsgi + django, This tutorial is here: https://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html?






                          share|improve this answer


























                            0












                            0








                            0







                            you can use nginx + uwsgi + django, This tutorial is here: https://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html?






                            share|improve this answer













                            you can use nginx + uwsgi + django, This tutorial is here: https://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html?







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Jan 10 at 8:54









                            D.WangD.Wang

                            212




                            212






























                                draft saved

                                draft discarded




















































                                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.




                                draft saved


                                draft discarded














                                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





















































                                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







                                Popular posts from this blog

                                How to make a Squid Proxy server?

                                Is this a new Fibonacci Identity?

                                19世紀