Re: how to solve this issue: "DatabaseError at /admin/myapp, no such column: myapp.myvar"

2011-05-23 Thread roberto
It is weird that database error is in "adminaddress" and the name of the table starts with "address_". how is your "INSTALLED_APPLICATIONS" set in settings.py ? where is / are your admin.py file / s located in your project directory ? how does your directory three structure look like ? Maybe it is

Re: how to solve this issue: "DatabaseError at /admin/myapp, no such column: myapp.myvar"

2011-05-22 Thread enqing
No, I don't think so, first I edit my Model like this: in model.py: Class UeSetting(model.Model): title = models.CharField('title',max_length=11,unique=True) changetime = models.DateTimeField('changetime',auto_now_add=True) def __unicode__(self):

Re: [ask for help] how to solve this issue: "DatabaseError at /admin/myapp, no such column: myapp.myvar"

2011-05-21 Thread brad
It sounds like you may have created your Models, run "mange.py syncdb", then added another field to your Model. Remember, syncdb doesn't add new columns in your table when you add a new field to an existing model. If this app is still in development, you can drop the whole table corresponding

Re: [ask for help] how to solve this issue: "DatabaseError at /admin/myapp, no such column: myapp.myvar"

2011-05-21 Thread Gabriel Gunderson
On Fri, May 20, 2011 at 8:36 PM, enqing wrote: >  This weird issue hanpped when I used the django admin site. I have > set the database with sqlite3,  and creat a number of my classes in > app model.py, all others classes  can work as expectation. only a > class have this  "DatabaseError at /admin

[ask for help] how to solve this issue: "DatabaseError at /admin/myapp, no such column: myapp.myvar"

2011-05-21 Thread enqing
This weird issue hanpped when I used the django admin site. I have set the database with sqlite3, and creat a number of my classes in app model.py, all others classes can work as expectation. only a class have this "DatabaseError at /admin/myapp, no such column: myapp.myvar" error apper in web