Ticket #16795: debug-page.txt

File debug-page.txt, 4.0 KB (added by frankwiles, 4 years ago)

Debug page

Line 
1Environment:
2
3
4Request Method: GET
5Request URL: http://localhost:8000/test/test/
6
7Django Version: 1.3
8Python Version: 2.6.1
9Installed Applications:
10['django.contrib.auth',
11 'django.contrib.contenttypes',
12 'django.contrib.sessions',
13 'django.contrib.sites',
14 'django.contrib.messages',
15 'django.contrib.staticfiles',
16 'sprint.testapp',
17 'django_extensions',
18 'south']
19Installed Middleware:
20('django.middleware.common.CommonMiddleware',
21 'django.contrib.sessions.middleware.SessionMiddleware',
22 'django.middleware.csrf.CsrfViewMiddleware',
23 'django.contrib.auth.middleware.AuthenticationMiddleware',
24 'django.contrib.messages.middleware.MessageMiddleware')
25
26
27Template error:
28In template /Users/frank/work/src/sprints/sprint/templates/test.html, error at line 7
29   Caught DatabaseError while rendering: column testapp_testmodel.new_field does not exist
30LINE 1: ..._testmodel"."name", "testapp_testmodel"."status", "testapp_t...
31                                                             ^
32
33   1 : <html>
34
35
36   2 :     <head>
37
38
39   3 :     </head>
40
41
42   4 :     <body>
43
44
45   5 :         <h1>Test Items!</h1>
46
47
48   6 :         <ul>
49
50
51   7 :          {% for i in all_items %}
52
53
54   8 :             <li>{{ i }}</li>
55
56
57   9 :         {% endfor %}
58
59
60   10 :         </ul>
61
62
63   11 :     </body>
64
65
66   12 : </html>
67
68
69   13 :
70
71Traceback:
72File "/Users/frank/.virtualenvs/sprint/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response
73  111.                         response = callback(request, *callback_args, **callback_kwargs)
74File "/Users/frank/work/src/sprints/sprint/testapp/views.py" in test_view
75  14.             context_instance=RequestContext(request)
76File "/Users/frank/.virtualenvs/sprint/lib/python2.6/site-packages/django/shortcuts/__init__.py" in render_to_response
77  20.     return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
78File "/Users/frank/.virtualenvs/sprint/lib/python2.6/site-packages/django/template/loader.py" in render_to_string
79  188.         return t.render(context_instance)
80File "/Users/frank/.virtualenvs/sprint/lib/python2.6/site-packages/django/template/base.py" in render
81  123.             return self._render(context)
82File "/Users/frank/.virtualenvs/sprint/lib/python2.6/site-packages/django/template/base.py" in _render
83  117.         return self.nodelist.render(context)
84File "/Users/frank/.virtualenvs/sprint/lib/python2.6/site-packages/django/template/base.py" in render
85  744.                 bits.append(self.render_node(node, context))
86File "/Users/frank/.virtualenvs/sprint/lib/python2.6/site-packages/django/template/debug.py" in render_node
87  73.             result = node.render(context)
88File "/Users/frank/.virtualenvs/sprint/lib/python2.6/site-packages/django/template/defaulttags.py" in render
89  191.         len_values = len(values)
90File "/Users/frank/.virtualenvs/sprint/lib/python2.6/site-packages/django/db/models/query.py" in __len__
91  82.                 self._result_cache = list(self.iterator())
92File "/Users/frank/.virtualenvs/sprint/lib/python2.6/site-packages/django/db/models/query.py" in iterator
93  273.         for row in compiler.results_iter():
94File "/Users/frank/.virtualenvs/sprint/lib/python2.6/site-packages/django/db/models/sql/compiler.py" in results_iter
95  680.         for rows in self.execute_sql(MULTI):
96File "/Users/frank/.virtualenvs/sprint/lib/python2.6/site-packages/django/db/models/sql/compiler.py" in execute_sql
97  735.         cursor.execute(sql, params)
98File "/Users/frank/.virtualenvs/sprint/lib/python2.6/site-packages/django/db/backends/util.py" in execute
99  34.             return self.cursor.execute(sql, params)
100File "/Users/frank/.virtualenvs/sprint/lib/python2.6/site-packages/django/db/backends/postgresql_psycopg2/base.py" in execute
101  44.             return self.cursor.execute(query, args)
102
103Exception Type: TemplateSyntaxError at /test/test/
104Exception Value: Caught DatabaseError while rendering: column testapp_testmodel.new_field does not exist
105LINE 1: ..._testmodel"."name", "testapp_testmodel"."status", "testapp_t...
Back to Top