Changes between Version 2 and Version 3 of Ticket #27475, comment 2


Ignore:
Timestamp:
Nov 12, 2016, 1:22:42 PM (8 years ago)
Author:
Hugo Tácito

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27475, comment 2

    v2 v3  
    66
    77{{{
    8 [12/Nov/2016 13:28:10] "GET /admin/auth/user/?date_joined__year=2016 HTTP/1.1" 200 6265
    9 Internal Server Error: /admin/auth/user/
    10 Traceback (most recent call last):
    11   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/core/handlers/base.py", line 174, in get_response
    12     response = self.process_exception_by_middleware(e, request)
    13   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/core/handlers/base.py", line 172, in get_response
    14     response = response.render()
    15   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/response.py", line 160, in render
    16     self.content = self.rendered_content
    17   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/response.py", line 137, in rendered_content
    18     content = template.render(context, self._request)
    19   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/backends/django.py", line 95, in render
    20     return self.template.render(context)
    21   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 206, in render
    22     return self._render(context)
    23   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 197, in _render
    24     return self.nodelist.render(context)
    25   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 992, in render
    26     bit = node.render_annotated(context)
    27   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 959, in render_annotated
    28     return self.render(context)
    29   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/loader_tags.py", line 173, in render
    30     return compiled_parent._render(context)
    31   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 197, in _render
    32     return self.nodelist.render(context)
    33   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 992, in render
    34     bit = node.render_annotated(context)
    35   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 959, in render_annotated
    36     return self.render(context)
    37   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/loader_tags.py", line 173, in render
    38     return compiled_parent._render(context)
    39   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 197, in _render
    40     return self.nodelist.render(context)
    41   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 992, in render
    42     bit = node.render_annotated(context)
    43   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 959, in render_annotated
    44     return self.render(context)
    45   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/loader_tags.py", line 69, in render
    46     result = block.nodelist.render(context)
    47   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 992, in render
    48     bit = node.render_annotated(context)
    49   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 959, in render_annotated
    50     return self.render(context)
    51   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/loader_tags.py", line 69, in render
    52     result = block.nodelist.render(context)
    53   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 992, in render
    54     bit = node.render_annotated(context)
    55   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py", line 959, in render_annotated
    56     return self.render(context)
    57   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/library.py", line 223, in render
    58     _dict = self.func(*resolved_args, **resolved_kwargs)
    59   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/contrib/admin/templatetags/admin_list.py", line 380, in date_hierarchy
    60     } for day in days]
    61   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/db/models/query.py", line 258, in __iter__
    62     self._fetch_all()
    63   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/db/models/query.py", line 1074, in _fetch_all
    64     self._result_cache = list(self.iterator())
    65   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/db/models/query.py", line 158, in __iter__
    66     for row in compiler.results_iter():
    67   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 808, in results_iter
    68     row = self.apply_converters(row, converters)
    69   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 792, in apply_converters
    70     value = converter(value, expression, self.connection, self.query.context)
    71   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/db/models/expressions.py", line 950, in convert_value
    72     value = timezone.make_aware(value, self.tzinfo)
    73   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/utils/timezone.py", line 364, in make_aware
    74     return timezone.localize(value, is_dst=is_dst)
    75   File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/pytz/tzinfo.py", line 327, in localize
    76     raise NonExistentTimeError(dt)
    77 NonExistentTimeError: 2016-10-16 00:00:00
     8Environment:
     9
     10
     11Request Method: GET
     12Request URL: http://localhost:8000/admin/auth/user/
     13
     14Django Version: 1.9.9
     15Python Version: 2.7.12
     16Installed Applications:
     17['django.contrib.admin',
     18 'django.contrib.auth',
     19 'django.contrib.contenttypes',
     20 'django.contrib.sessions',
     21 'django.contrib.messages',
     22 'django.contrib.staticfiles',
     23 'daylight']
     24Installed Middleware:
     25['django.middleware.security.SecurityMiddleware',
     26 'django.contrib.sessions.middleware.SessionMiddleware',
     27 'django.middleware.common.CommonMiddleware',
     28 'django.middleware.csrf.CsrfViewMiddleware',
     29 'django.contrib.auth.middleware.AuthenticationMiddleware',
     30 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
     31 'django.contrib.messages.middleware.MessageMiddleware',
     32 'django.middleware.clickjacking.XFrameOptionsMiddleware']
     33
     34
     35Template error:
     36In template /Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/contrib/admin/templates/admin/change_list.html, error at line 73
     37   2016-10-16 00:00:00   63 :       {% endif %}
     38   64 :     {% endblock %}
     39   65 :     {% if cl.formset.errors %}
     40   66 :         <p class="errornote">
     41   67 :         {% if cl.formset.total_error_count == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %}
     42   68 :         </p>
     43   69 :         {{ cl.formset.non_form_errors }}
     44   70 :     {% endif %}
     45   71 :     <div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist">
     46   72 :       {% block search %}{% search_form cl %}{% endblock %}
     47   73 :       {% block date_hierarchy %} {% date_hierarchy cl %} {% endblock %}
     48   74 :
     49   75 :       {% block filters %}
     50   76 :         {% if cl.has_filters %}
     51   77 :           <div id="changelist-filter">
     52   78 :             <h2>{% trans 'Filter' %}</h2>
     53   79 :             {% for spec in cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %}
     54   80 :           </div>
     55   81 :         {% endif %}
     56   82 :       {% endblock %}
     57   83 :
     58
     59
     60Traceback:
     61
     62File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
     63  174.                     response = self.process_exception_by_middleware(e, request)
     64
     65File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
     66  172.                     response = response.render()
     67
     68File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/response.py" in render
     69  160.             self.content = self.rendered_content
     70
     71File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/response.py" in rendered_content
     72  137.         content = template.render(context, self._request)
     73
     74File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/backends/django.py" in render
     75  95.             return self.template.render(context)
     76
     77File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py" in render
     78  206.                     return self._render(context)
     79
     80File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py" in _render
     81  197.         return self.nodelist.render(context)
     82
     83File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py" in render
     84  992.                 bit = node.render_annotated(context)
     85
     86File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py" in render_annotated
     87  959.             return self.render(context)
     88
     89File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/loader_tags.py" in render
     90  173.         return compiled_parent._render(context)
     91
     92File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py" in _render
     93  197.         return self.nodelist.render(context)
     94
     95File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py" in render
     96  992.                 bit = node.render_annotated(context)
     97
     98File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py" in render_annotated
     99  959.             return self.render(context)
     100
     101File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/loader_tags.py" in render
     102  173.         return compiled_parent._render(context)
     103
     104File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py" in _render
     105  197.         return self.nodelist.render(context)
     106
     107File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py" in render
     108  992.                 bit = node.render_annotated(context)
     109
     110File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py" in render_annotated
     111  959.             return self.render(context)
     112
     113File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/loader_tags.py" in render
     114  69.                 result = block.nodelist.render(context)
     115
     116File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py" in render
     117  992.                 bit = node.render_annotated(context)
     118
     119File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py" in render_annotated
     120  959.             return self.render(context)
     121
     122File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/loader_tags.py" in render
     123  69.                 result = block.nodelist.render(context)
     124
     125File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py" in render
     126  992.                 bit = node.render_annotated(context)
     127
     128File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/base.py" in render_annotated
     129  959.             return self.render(context)
     130
     131File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/template/library.py" in render
     132  223.         _dict = self.func(*resolved_args, **resolved_kwargs)
     133
     134File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/contrib/admin/templatetags/admin_list.py" in date_hierarchy
     135  380.                 } for day in days]
     136
     137File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/db/models/query.py" in __iter__
     138  258.         self._fetch_all()
     139
     140File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/db/models/query.py" in _fetch_all
     141  1074.             self._result_cache = list(self.iterator())
     142
     143File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/db/models/query.py" in __iter__
     144  158.         for row in compiler.results_iter():
     145
     146File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in results_iter
     147  808.                     row = self.apply_converters(row, converters)
     148
     149File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in apply_converters
     150  792.                 value = converter(value, expression, self.connection, self.query.context)
     151
     152File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/db/models/expressions.py" in convert_value
     153  950.             value = timezone.make_aware(value, self.tzinfo)
     154
     155File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/django/utils/timezone.py" in make_aware
     156  364.         return timezone.localize(value, is_dst=is_dst)
     157
     158File "/Users/hugo/.virtualenvs/suap/lib/python2.7/site-packages/pytz/tzinfo.py" in localize
     159  327.                 raise NonExistentTimeError(dt)
     160
     161Exception Type: NonExistentTimeError at /admin/auth/user/
     162Exception Value: 2016-10-16 00:00:00
    78163}}}
    79164
Back to Top