Changes between Initial Version and Version 2 of Ticket #23403


Ignore:
Timestamp:
Sep 3, 2014, 6:41:24 AM (10 years ago)
Author:
Tim Graham
Comment:

Could you please include code to reproduce the issue (ideally as a test for Django's test suite)? Did your code work in Django 1.6?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23403

    • Property Owner changed from nobody to Igor Koshkarov
    • Property Status newassigned
    • Property Easy pickings unset
    • Property Needs tests set
  • Ticket #23403 – Description

    initial v2  
    11When building a sitemap I receive
    2 jango Version:  1.7
     2{{{
     3Django Version:         1.7
    34Exception Type:         AttributeError
    45Exception Value:        'datetime.date' object has no attribute 'utctimetuple'
     
    67Exception Location:     <skipped>/Django/lib/python2.7/site-packages/django/contrib/sitemaps/views.py in sitemap, line 78
    78
     9}}}
    810Workaround can be done as:
     11{{{
    912diff --git a/django/contrib/sitemaps/views.py b/django/contrib/sitemaps/views.py
    1013index aa184e9..d74c55b 100644
     
    2831         # ConditionalGetMiddleware is able to send 304 NOT MODIFIED
    2932         response['Last-Modified'] = http_date(
    30 
     33}}}
Back to Top