First time here? Check out the FAQ!

A little girl's profile - activity

2017-07-05 12:38:25 -0500 received badge Notable Question (source)
2013-12-04 13:43:03 -0500 received badge Popular Question (source)
2012-10-09 10:09:28 -0500 received badge Famous Question (source)
2012-01-25 09:02:46 -0500 commented question customize askbot

There is no Subject table yet. Should I add the table first and then create the models? Since I am new to Django and Python, I am not sure if my file subject.py is correct ... I saw that this file can be compiled and create the file subject.pyc

2012-01-25 06:00:35 -0500 asked a question customize askbot

Hi,

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


my file is name subject.py 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:
    app_label='askbot'
    db_table = u'subject'
def __unicode__(self):
    return self.subject

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

Thanks.

2012-01-08 03:17:17 -0500 commented answer tag vs. tagname in database

I have about 1000 questions in 30 files. And I need to add more question later (more excel sheets are on the way). Hence, it is quite a large data. Now, the only way I know is importing through mysql shell the question table, askbot_postrevision, question_tags. Thanks for you quick reply :)

2012-01-07 20:35:07 -0500 commented answer tag vs. tagname in database

Could you please explain more about the user.post_question(), i.e how can I use this to import a file with 40 questions record in a file? Or I only can use it to import 1 question at a time, and repeat 40 times? Thanks.

2012-01-05 22:29:07 -0500 received badge Editor (source)
2012-01-05 22:28:01 -0500 asked a question tag vs. tagname in database

Hi,

I am new to Askbot. I have already has the data file for question. I want to import these things into my askbot forum. I import directly through mysql shell from the text file (.csv) to "question" table. In this table, I noticed that a field name "tagnames". Hence I don't know what is the meaning of field tagnames in question table. But this field is a "NOT NULL" field. Could you please explain why we should have "tagnames" field? I also have to import all the "tag" table and "question_tags" table to do a search using tag.

I have also done the following experiment.


I have 3 questions in my database.

Question 1. tagnames="physics", tag="test""image". //import from file -> directly go to database then use admin UI to add tag

Question 2. tagnames="physics", tag="test""image". //import from file

Question 3. tagnames="test" "image", tag="test""image". //submit through UI

As I expect, when I click on "test" tag (question 3), it show up all the 3 questions. However, when start over, click on the tag "physics" of either question 1 or 2, it show nothing (no matched tag). (I expected when click on physics, it show up question 1 and 2).


Then, what is happened behind the scene of clicking the tag?

Thank