First time here? Check out the FAQ!

Revision history  [back]

customize askbot


I want to add more table to the askbot database. Usually, in Django, we can make new file in (or create new file in folder model). Then run syncdb. But, I cannot do that in askbot. What am I missing?


my file is name in models

import re from django.db import models from django.db import connection, transaction from django.contrib.auth.models import User from django.utils.translation import ugettext as _ from askbot.models.base import DeletableContent from askbot.models.base import BaseQuerySetManager from askbot import const

class Subject(models.Model): subject = models.CharField(max_length=64)

class Meta:
    db_table = u'subject'
def __unicode__(self):
    return self.subject


I have used from askbot.models.subject import Subject in in folder models.