hi all, struggling to get sitemaps setup. followed docs, including
working out there was an import missing in the docco.
this is the copy n paste error
Environment:
Request Method: GET
Request URL:
http://coatesconstruction.co.uk/sitemap.xml
Django Version: 1.3
Python Version: 2.5.2
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sitemaps',
'django.contrib.admin',
'frontpage',
'contact_form',
'projects',
'testimonials',
'south']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')
Traceback:
File "/home/shofty/virtualenvs/coates/lib/python2.5/site-packages/
django/core/handlers/base.py" in get_response
111. response = callback(request,
*callback_args, **callback_kwargs)
File "/home/shofty/virtualenvs/coates/lib/python2.5/site-packages/
django/contrib/sitemaps/views.py" in sitemap
33. maps = sitemaps.values()
Exception Type: AttributeError at /sitemap.xml
Exception Value: 'module' object has no attribute 'values'
should i be populating sitemaps in the urls file?