I've been following the tutorial on the Django site, except that I'm
inserting the app I'm developing in place of the tutorial app data. I
received this error after logging into the admin site.


TemplateSyntaxError at /admin/
Caught an exception while rendering: no such table: django_admin_log

Original Traceback (most recent call last):
  File "C:\Python25\lib\site-packages\django\template\debug.py", line
71, in render_node
    result = node.render(context)
  File "C:\Python25\lib\site-packages\django\template\defaulttags.py",
line 244, in render
    if (value and not ifnot) or (ifnot and not value):
  File "C:\Python25\lib\site-packages\django\db\models\query.py", line
185, in __nonzero__
    iter(self).next()
  File "C:\Python25\lib\site-packages\django\db\models\query.py", line
179, in _result_iter
    self._fill_cache()
  File "C:\Python25\lib\site-packages\django\db\models\query.py", line
612, in _fill_cache
    self._result_cache.append(self._iter.next())
  File "C:\Python25\lib\site-packages\django\db\models\query.py", line
269, in iterator
    for row in self.query.results_iter():
  File "C:\Python25\lib\site-packages\django\db\models\sql\query.py",
line 206, in results_iter
    for rows in self.execute_sql(MULTI):
  File "C:\Python25\lib\site-packages\django\db\models\sql\query.py",
line 1700, in execute_sql
    cursor.execute(sql, params)
  File "C:\Python25\lib\site-packages\django\db\backends\util.py",
line 19, in execute
    return self.cursor.execute(sql, params)
  File "C:\Python25\lib\site-packages\django\db\backends
\sqlite3\base.py", line 167, in execute
    return Database.Cursor.execute(self, query, params)
OperationalError: no such table: django_admin_log
Request Method: GET
Request URL: http://127.0.0.1:8000/admin/
Exception Type: TemplateSyntaxError
Exception Value: Caught an exception while rendering: no such table:
django_admin_log

Original Traceback (most recent call last):
  File "C:\Python25\lib\site-packages\django\template\debug.py", line
71, in render_node
    result = node.render(context)
  File "C:\Python25\lib\site-packages\django\template\defaulttags.py",
line 244, in render
    if (value and not ifnot) or (ifnot and not value):
  File "C:\Python25\lib\site-packages\django\db\models\query.py", line
185, in __nonzero__
    iter(self).next()
  File "C:\Python25\lib\site-packages\django\db\models\query.py", line
179, in _result_iter
    self._fill_cache()
  File "C:\Python25\lib\site-packages\django\db\models\query.py", line
612, in _fill_cache
    self._result_cache.append(self._iter.next())
  File "C:\Python25\lib\site-packages\django\db\models\query.py", line
269, in iterator
    for row in self.query.results_iter():
  File "C:\Python25\lib\site-packages\django\db\models\sql\query.py",
line 206, in results_iter
    for rows in self.execute_sql(MULTI):
  File "C:\Python25\lib\site-packages\django\db\models\sql\query.py",
line 1700, in execute_sql
    cursor.execute(sql, params)
  File "C:\Python25\lib\site-packages\django\db\backends\util.py",
line 19, in execute
    return self.cursor.execute(sql, params)
  File "C:\Python25\lib\site-packages\django\db\backends
\sqlite3\base.py", line 167, in execute
    return Database.Cursor.execute(self, query, params)
OperationalError: no such table: django_admin_log

Exception Location: C:\Python25\lib\site-packages\django\template
\debug.py in render_node, line 81
Python Executable: C:\Python25\python.exe
Python Version: 2.5.2
Python Path: ['C:\\django\\mrbc', 'C:\\Python25\\python25.zip', 'C:\
\Python25\\DLLs', 'C:\\Python25\\lib', 'C:\\Python25\\lib\\plat-win',
'C:\\Python25\\lib\\lib-tk', 'C:\\Python25', 'C:\\Python25\\lib\\site-
packages']
Server time: Wed, 3 Dec 2008 10:17:28 -0500

Template error
In template c:\python25\lib\site-packages\django\contrib\admin
\templates\admin\index.html, error at line 57

Caught an exception while rendering: no such table: django_admin_log
47 </div>

48 {% endblock %}

49
50 {% block sidebar %}

51 <div id="content-related">

52     <div class="module" id="recent-actions-module">

53         <h2>{% trans 'Recent Actions' %}</h2>

54         <h3>{% trans 'My Actions' %}</h3>

55             {% load log %}

56             {% get_admin_log 10 as admin_log for_user user %}

57             {% if not admin_log %}

58             <p>{% trans 'None available' %}</p>

59             {% else %}

60             <ul class="actionlist">

61             {% for entry in admin_log %}

62             <li class="{% if entry.is_addition %}addlink{% endif %}
{% if entry.is_change %}changelink{% endif %}{% if entry.is_deletion %}
deletelink{% endif %}">{% if not entry.is_deletion %}<a
href="{{ entry.get_admin_url }}">{% endif %}{{ entry.object_repr|
escape }}{% if not entry.is_deletion %}</a>{% endif %}<br /><span
class="mini quiet">{% filter capfirst %}{% trans
entry.content_type.name %}{% endfilter %}</span></li>

63             {% endfor %}

64             </ul>

65             {% endif %}

66     </div>

67 </div>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to