two questions about data model

2007-09-15 Thread Hai Dong
Hello: I am trying to control the html display size of a CharField using length keyword. However, I got the following error when doing syncdb __init__() got an unexpected keyword argument 'length' I am using django svn release. I didn't find length keyword in django document, but learned it fro

Re: a question about flatpage

2007-08-25 Thread Hai Dong
ogs > (yours are probably in /var/log/httpd/error_log). > > the first django-related issue i would check though: do you have a > template file for your flatpages? it should live in > 'flatpages/default.html' in your templates folder. > > -jake > > Hai Dong wrote:

a question about flatpage

2007-08-25 Thread Hai Dong
Hello: I got a strange problem with flat page. I created a test flatpage called "/test2/". I know the flatpage middleware is working, since if I enter /test/ as my url I will get page not found (404) error. However, if I enter /test2/ I got the Internal server error. I have attached both errors b

multi level category table with parent_id field

2007-08-12 Thread Hai Dong
Hello, I was wondering how to use django to achieve the following application. Suppose my articles are organized in categories, subcategories, and subsubcategories. Database wise it will be good to have a category table with a parent_id referring to itself. I don't know how to achieve this by dja

a question about site framework

2007-07-31 Thread Hai Dong
Hello: I got a question. What if I have two sites, and each site has several categories (where articles belong to). For such kind of case what is the best way of utilizing the site framework. Thanks, Harry --~--~-~--~~~---~--~~ You received this message because y