Saturday, July 31, 2010

Getting http://http://domain.com/sitemaps.xml on production server using django sitemaps

I'm trying to get sitemaps configured properly for http://newsley.com,
but I'm having weird issues with the URLs that are being created for
the sitemaps.xml on my production server. e.g. http://newsley.com/sitemap.xml

When I run the code on my development server, using ./manage.py
runserver, the urls are produced correctly, but when I run the code on
my production server (apache running on Windows server), it's adding
an extra "http://" to every url in the sitemaps.xml file.

For what it's worthy, my sitemaps.py, urls.py and models.py are here:
http://dpaste.com/hold/223712/

I'm guessing that I have apache configured wrong somehow, but this is
the first time I've run into this problem, and I'm stumped.

Any suggestions?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment