I am running 1.0 on sqlite3 and I keep on getting
[snip]
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://localhost: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:\\Projects\\mwb\\tools\\django_test', 'C:\
\Python25', 'C:\\Program Files\\IBM\\WebSphere MQ\\bin', 'C:\\Python25\
\python25.zip', 'C:\\Python25\\DLLs', 'C:\\Python25\\lib', 'C:\
\Python25\\lib\\plat-win', 'C:\\Python25\\lib\\lib-tk', 'C:\\Python25\
\lib\\site-packages']
Server time: Mon, 22 Sep 2008 14:57:53 +0200
[/snip]
This seems consistent with the logs
C:\Projects\tools\django_test>python manage.py syncdb
Creating table auth_permission
Creating table auth_group
Creating table auth_user
Creating table auth_message
Creating table django_content_type
Creating table django_session
Creating table django_site
You just installed Django's auth system, which means you don't have
any superusers defined.
Would you like to create one now? (yes/no): yes
Username: tsmets
E-mail address: [EMAIL PROTECTED]
Password:
Password (again):
Superuser created successfully.
Installing index for auth.Permission model
Installing index for auth.Message model
What is wrong in my set up ... ?
\T,
On Jul 31, 7:49 pm, Martin Diers <[EMAIL PROTECTED]> wrote:
> Hello Alaric, welcome aboard!
>
> You are currently running Django 0.96.
>
> There have been a massive number of changes to Django since then, not
> the least of which is an entirely new Admin system which separates the
> Admin configuration from the model, and a refactoring of the Queryset
> system.
>
> I would strongly suggest you upgrade to the SVN version, or,
> alternately, wait for 1.0beta1 which is due out next week sometime.
>
> On Jul 31, 2008, at 12:21 PM, Alaric Haag wrote:
>
>
>
> > Hello all
>
> > This is my first post to the django-user list, and I'm certain it
> > won't
> > be my last! :)
>
> > So, in my ongoing journey of learning Django, I've solved a lot of my
> > own problems; the Django documentation is quite good, as the examples
> > seem to illustrate the "how" and the "why"!
>
> > I am stumped by this problem, but I suspect my model is the source...
> > There are probably many better ways to do what I'm doing, but please
> > roll with me as I learn!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---