Ask Your Question
3

sitemap.xml is using example.com

asked 2011-01-06 17:28:49 -0500

updated 2011-01-06 17:34:47 -0500

Evgeny gravatar image

http://asksci.com/sitemap.xml

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
5

answered 2011-01-06 17:40:13 -0500

Evgeny gravatar image

updated 2011-12-28 10:59:51 -0500

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
edit flag offensive delete link more

Comments

Nice I just used that to!
xdot gravatar imagexdot ( 2011-01-10 14:43:29 -0500 )edit

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 gravatar imagestr ( 2011-12-28 10:46:13 -0500 )edit
1

@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 gravatar imageEvgeny ( 2011-12-28 11:01:28 -0500 )edit

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

str gravatar imagestr ( 2011-12-28 11:25:28 -0500 )edit

Had the same issue, your answer helped :)

You should add it in docs I think.

Chankey Pathak gravatar imageChankey Pathak ( 2013-07-04 05:23:13 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-01-06 17:28:49 -0500

Seen: 1,126 times

Last updated: Dec 28 '11