django - how to change localhost from 127.0.0.1 to 127.0.0.1:8000?












0















I'm using Wagtail cms on django framework, problem is localhost address, I want to access to the site running in 127.0.0.1:8000 by localhost?
I tried hosts file, but no luck !










share|improve this question




















  • 3





    The question doesn't make sense: All IPs starting with 127 are localhost (127.0.0.0/8) and that's the IP address (network layer). The port number lives on other layer on OSI model / TCP/IP stack, the transport layer.

    – Pablo Bianchi
    Jan 21 at 4:42


















0















I'm using Wagtail cms on django framework, problem is localhost address, I want to access to the site running in 127.0.0.1:8000 by localhost?
I tried hosts file, but no luck !










share|improve this question




















  • 3





    The question doesn't make sense: All IPs starting with 127 are localhost (127.0.0.0/8) and that's the IP address (network layer). The port number lives on other layer on OSI model / TCP/IP stack, the transport layer.

    – Pablo Bianchi
    Jan 21 at 4:42
















0












0








0








I'm using Wagtail cms on django framework, problem is localhost address, I want to access to the site running in 127.0.0.1:8000 by localhost?
I tried hosts file, but no luck !










share|improve this question
















I'm using Wagtail cms on django framework, problem is localhost address, I want to access to the site running in 127.0.0.1:8000 by localhost?
I tried hosts file, but no luck !







localhost django cms






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 20 at 16:50









Kulfy

4,29651442




4,29651442










asked Jan 23 '16 at 8:34









HomanHoman

11




11








  • 3





    The question doesn't make sense: All IPs starting with 127 are localhost (127.0.0.0/8) and that's the IP address (network layer). The port number lives on other layer on OSI model / TCP/IP stack, the transport layer.

    – Pablo Bianchi
    Jan 21 at 4:42
















  • 3





    The question doesn't make sense: All IPs starting with 127 are localhost (127.0.0.0/8) and that's the IP address (network layer). The port number lives on other layer on OSI model / TCP/IP stack, the transport layer.

    – Pablo Bianchi
    Jan 21 at 4:42










3




3





The question doesn't make sense: All IPs starting with 127 are localhost (127.0.0.0/8) and that's the IP address (network layer). The port number lives on other layer on OSI model / TCP/IP stack, the transport layer.

– Pablo Bianchi
Jan 21 at 4:42







The question doesn't make sense: All IPs starting with 127 are localhost (127.0.0.0/8) and that's the IP address (network layer). The port number lives on other layer on OSI model / TCP/IP stack, the transport layer.

– Pablo Bianchi
Jan 21 at 4:42












2 Answers
2






active

oldest

votes


















0














Finally I found the solution:
from Wagtail Admin/Settings/Sites/Example site change the site






share|improve this answer



















  • 2





    I don't think this is the right solution. You should be adding the port number to your runserver command and not in the database. If you do so in the database and replicate this on a live server, you are in trouble.

    – don.joey
    Apr 30 '16 at 7:11



















0














Per don.joey's comment, you can specify the address and port of your local server with something like: python manage.py runserver 127.0.0.1:8001. If you change the address, you'll have to add it to ALLOWED_HOSTS in your settings file.






share|improve this answer








New contributor




BillD is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    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%2faskubuntu.com%2fquestions%2f724566%2fdjango-how-to-change-localhost-from-127-0-0-1-to-127-0-0-18000%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Finally I found the solution:
    from Wagtail Admin/Settings/Sites/Example site change the site






    share|improve this answer



















    • 2





      I don't think this is the right solution. You should be adding the port number to your runserver command and not in the database. If you do so in the database and replicate this on a live server, you are in trouble.

      – don.joey
      Apr 30 '16 at 7:11
















    0














    Finally I found the solution:
    from Wagtail Admin/Settings/Sites/Example site change the site






    share|improve this answer



















    • 2





      I don't think this is the right solution. You should be adding the port number to your runserver command and not in the database. If you do so in the database and replicate this on a live server, you are in trouble.

      – don.joey
      Apr 30 '16 at 7:11














    0












    0








    0







    Finally I found the solution:
    from Wagtail Admin/Settings/Sites/Example site change the site






    share|improve this answer













    Finally I found the solution:
    from Wagtail Admin/Settings/Sites/Example site change the site







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jan 23 '16 at 12:22









    HomanHoman

    11




    11








    • 2





      I don't think this is the right solution. You should be adding the port number to your runserver command and not in the database. If you do so in the database and replicate this on a live server, you are in trouble.

      – don.joey
      Apr 30 '16 at 7:11














    • 2





      I don't think this is the right solution. You should be adding the port number to your runserver command and not in the database. If you do so in the database and replicate this on a live server, you are in trouble.

      – don.joey
      Apr 30 '16 at 7:11








    2




    2





    I don't think this is the right solution. You should be adding the port number to your runserver command and not in the database. If you do so in the database and replicate this on a live server, you are in trouble.

    – don.joey
    Apr 30 '16 at 7:11





    I don't think this is the right solution. You should be adding the port number to your runserver command and not in the database. If you do so in the database and replicate this on a live server, you are in trouble.

    – don.joey
    Apr 30 '16 at 7:11













    0














    Per don.joey's comment, you can specify the address and port of your local server with something like: python manage.py runserver 127.0.0.1:8001. If you change the address, you'll have to add it to ALLOWED_HOSTS in your settings file.






    share|improve this answer








    New contributor




    BillD is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.

























      0














      Per don.joey's comment, you can specify the address and port of your local server with something like: python manage.py runserver 127.0.0.1:8001. If you change the address, you'll have to add it to ALLOWED_HOSTS in your settings file.






      share|improve this answer








      New contributor




      BillD is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.























        0












        0








        0







        Per don.joey's comment, you can specify the address and port of your local server with something like: python manage.py runserver 127.0.0.1:8001. If you change the address, you'll have to add it to ALLOWED_HOSTS in your settings file.






        share|improve this answer








        New contributor




        BillD is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.










        Per don.joey's comment, you can specify the address and port of your local server with something like: python manage.py runserver 127.0.0.1:8001. If you change the address, you'll have to add it to ALLOWED_HOSTS in your settings file.







        share|improve this answer








        New contributor




        BillD is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        BillD is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered Jan 20 at 16:30









        BillDBillD

        111




        111




        New contributor




        BillD is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        BillD is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        BillD is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • 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%2faskubuntu.com%2fquestions%2f724566%2fdjango-how-to-change-localhost-from-127-0-0-1-to-127-0-0-18000%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

            數位音樂下載

            When can things happen in Etherscan, such as the picture below?

            格利澤436b