First time here? Check out the FAQ!

ajk14's profile - activity

2018-04-27 04:39:58 -0500 received badge Notable Question (source)
2014-05-16 16:51:47 -0500 received badge Popular Question (source)
2014-04-07 21:56:01 -0500 received badge Taxonomist
2012-11-08 20:58:39 -0500 received badge Famous Question (source)
2012-02-28 22:01:27 -0500 asked a question Creating a Table in Askbot Database

I'm trying to add a new table to the askbot database by adding the following code to the file models/questions.py

class Foo(models.Model):
    foo = models.CharField(max_length=100)

However, when I run syncdb, this table 'Foo' is not created. I've tried dropping the database and starting with a fresh database, and I've also updated my migrations using 'python manage.py schemamigration askbot --auto' command. I get the same problem whether I put my new model inside an existing .py file or inside a new one, and it even occurs when I create an entirely new Django app and place the model code there.

I'm using PostgreSQL 8.4.8 and Django 1.3.1. I've seen this problem discussed on here before, but has anyone actually solved this problem?

2012-02-27 13:20:03 -0500 answered a question customize askbot

Has this question been resolved? I'm having the exact same problem, where syncdb is not creating the new table that I am expecting.

I've added my model to the __all__ list in models/__init__.py but that doesn't seem to have helped.