First time here? Check out the FAQ!

iicore's profile - activity

2013-10-04 13:39:38 -0500 received badge Famous Question (source)
2012-07-05 05:39:06 -0500 received badge Famous Question (source)
2011-10-27 02:52:11 -0500 marked best answer How can I modify models in askbot?

Hello, in this case it will be necessary to use South migrations.

Here is the documentation http://south.aeracode.org/.

First thing, after you change code in the models, make a schema migration:

python manage.py schemamigration askbot --auto

Then apply the migration.

python manage.py migrate askbot

All migrations for askbot live in the directory askbot/migrations - you will need to edit your migration and the subsequent askbot's migration (when we make a new one)

The edit in the migration files is necessary to specify that your migration must run after the last current askbot's migration, and the next askbot's migration must run after yours.

Here is the document explaining how to deal with migration dependencies http://south.aeracode.org/docs/dependencies.html.

South has two types of migrations - schema migrations and data migrations. Schema migrations change the database schema, while data migrations only modify the data.

At Askbot we love South - cheers to the South devs! Definitely check out their django & python hosting service called ep.io it make django deployments real easy.

2011-10-27 02:52:11 -0500 received badge Scholar ( source )
2011-10-27 02:52:08 -0500 answered a question How can I modify models in askbot?

Thanks, Evgeny, it works!!!

2011-10-26 03:55:54 -0500 received badge Editor (source)
2011-10-26 03:34:03 -0500 asked a question How can I modify models in askbot?

If I want to add a new element in Class Question(question.py), What should I do?

I have modify askbot/models/question.py like this:

 title    = models.CharField(max_length=300)
 tags     = models.ManyToManyField('Tag', related_name='questions')
 answer_accepted = models.BooleanField(default=False)
 +testestest = models.BooleanField(default=False)
 closed          = models.BooleanField(default=False)

After modify question.py, I delete old database in mysql, run "python manage.py syncdb; python manage.py migrate". Then I check the question table in mysql again, but "testestest" field isn't exist in question table.

2011-07-24 08:59:19 -0500 received badge Student (source)
2011-07-24 07:07:46 -0500 asked a question How to send out a video?

I want to embedd video in askbot. After install markdown2, how can I send out a video question?