django - how to change localhost from 127.0.0.1 to 127.0.0.1:8000?
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
add a comment |
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
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
add a comment |
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
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
localhost django cms
edited Jan 20 at 16:50
Kulfy
4,42651542
4,42651542
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
Finally I found the solution:
from Wagtail Admin/Settings/Sites/Example site change the site
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
add a comment |
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.
add a comment |
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
});
}
});
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%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
Finally I found the solution:
from Wagtail Admin/Settings/Sites/Example site change the site
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
add a comment |
Finally I found the solution:
from Wagtail Admin/Settings/Sites/Example site change the site
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
add a comment |
Finally I found the solution:
from Wagtail Admin/Settings/Sites/Example site change the site
Finally I found the solution:
from Wagtail Admin/Settings/Sites/Example site change the site
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
add a comment |
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Jan 20 at 16:30
BillDBillD
111
111
add a comment |
add a comment |
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.
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%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
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
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