[GSoc Project] Error Creating a New Model for The Database
17 May
2015
17 May
'15
12:15 a.m.
Bhavesh Goyal writes:
But, whenever I try to query an object from the 'task' table, I get an sql error : no such table 'task'.
Are you doing attribute access in Python code for Django, or are you writing direct SQL queries?
My first guess for either case is that you haven't done the sync operation on the database (Django doesn't do it automatically), and so the table hasn't been created.
My second guess is that the names that Django chooses for the table are munged (some kind of prefixing is done to make them unique and unlikely to conflict with table names chosen by the programmer).
My third guess is that you're trying to access a Django table from Mailman; that isn't going to work terribly well.
3260
Age (days ago)
3260
Last active (days ago)
0 comments
1 participants
participants (1)
-
Stephen J. Turnbull