[Mailman-Developers] [GSoc Project] Error Creating a New Model for The Database

Stephen J. Turnbull stephen at xemacs.org
Sun May 17 02:15:28 CEST 2015


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.



More information about the Mailman-Developers mailing list