Changes between Initial Version and Version 2 of Ticket #23403
- Timestamp:
- Sep 3, 2014, 6:41:24 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #23403
- Property Owner changed from to
- Property Status new → assigned
- Property Easy pickings unset
- Property Needs tests set
-
Ticket #23403 – Description
initial v2 1 1 When building a sitemap I receive 2 jango Version: 1.7 2 {{{ 3 Django Version: 1.7 3 4 Exception Type: AttributeError 4 5 Exception Value: 'datetime.date' object has no attribute 'utctimetuple' … … 6 7 Exception Location: <skipped>/Django/lib/python2.7/site-packages/django/contrib/sitemaps/views.py in sitemap, line 78 7 8 9 }}} 8 10 Workaround can be done as: 11 {{{ 9 12 diff --git a/django/contrib/sitemaps/views.py b/django/contrib/sitemaps/views.py 10 13 index aa184e9..d74c55b 100644 … … 28 31 # ConditionalGetMiddleware is able to send 304 NOT MODIFIED 29 32 response['Last-Modified'] = http_date( 30 33 }}}