Ask Your Question
2

sitemap.xml is using example.com

asked Jan 06 '11

DealsVistaCom gravatar image DealsVistaCom
127 4 4 13
http://www.dealsvista.com...

updated Jan 06 '11

Evgeny gravatar image Evgeny flag of Chile
6665 31 49 95
http://askbot.org/

http://asksci.com/sitemap.xml

The sitemap.xml is using example.com instead of the real domain name.

1 Answer

Sort by ยป oldest newest most voted
4
DealsVistaCom has selected this answer as correct

answered Jan 06 '11

Evgeny gravatar image Evgeny flag of Chile
6665 31 49 95
http://askbot.org/

updated Dec 28 '11

This is set through the django admin interface at the moment, the url is /admin accessible only to the site administrators, go to that url, scroll to sites, click on "example.com" and change to "asksci.com".

Not so convenient, I've retagged your question as the "feature-request" and will remember to make this setting easier to find.

This is a screenshot of our "sites" admin page:

image description

And the site record itself:

image description

Also, it is important that SITE_ID setting value in your settings.py is the same as the ID of the intended record in the admin panel:

SITE_ID = 1 #site id is 1 in our case - it is part of url in the above image
link

Comments

Nice I just used that to! xdot (Jan 10 '11)

I tried with your solution, i.e. changing 'example.com' to my domain name - but the /sitemap.xml still shows links with example.com. Pls help.

str (Dec 28 '11)

@str, just edited the post above, if this does not help you - try restarting the app - perhaps there is a caching issue. If you are running multiple processes for the web application - you will need to set up memcached or redis cache. Default setting is locmem://

Evgeny (Dec 28 '11)

Yes - restarting the app solved the problem. Many thanks.

str (Dec 28 '11)

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Follow

subscribe to rss feed

Stats

Asked: Jan 06 '11

Seen: 84 times

Last updated: Dec 28 '11