Why django return pages with not webserver running?

2006-05-14 Thread [EMAIL PROTECTED]
Using 0.95 I'm triying to solve a problem. When the webserver is running, say this: Traceback (most recent call last): File "d:\programacion\python\python24\lib\site-packages\django\django\core\handlers\base.py" in get_response 65. callback, callback_args, callback_kwargs = resolver.resolve(pa

How debug django 0.95 in windows + komodo

2006-05-14 Thread [EMAIL PROTECTED]
I'm a new user in django, and i'm evaluating it for replace dotnetnuke with it. I have basic python skills and I play with sucesfully the tutorial and read all the django website documentation. However, I don't know how debug it. I'm using Komodo Personal 3.5, Win 2003/XP, SqlLite and integrated

Re: Context as Stack?

2006-05-14 Thread Eugene Lazutkin
nevroe wrote: > Eugene -- can you point me to any examples of subviews? In my work, > I've ended up implementing hacky custom tags, where I take an object, > and essentially use the custom tag to, in the templatetag code, call > another view and load the other view. There is nothing magical abou

Re: Django without database

2006-05-14 Thread Bill de hÓra
Bill de hÓra wrote: > For models and admin usage your storage will need to meet the DBAPI > contract. I think it can be done, but with considerable effort. I think > I'd wonder why bother tho' - the main reason I cna think of is for the > CMS case where users can create ...arbitrary content t

Re: Django without database

2006-05-14 Thread Bill de hÓra
Karl Fast wrote: > Can anyone point me to examples of django apps that either do not use > a database, or use it for only part of the app? Looking for source. > > I'm specifically interested in examples with models that use other > persistence backends (like a config file), and the associated > v

Re: Context as Stack?

2006-05-14 Thread nevroe
Eugene -- can you point me to any examples of subviews? In my work, I've ended up implementing hacky custom tags, where I take an object, and essentially use the custom tag to, in the templatetag code, call another view and load the other view. I've essentially run into the problem of needing to

add the same fields to all my models: inheritance?

2006-05-14 Thread gabor
hi, i have a lot of models, and there are certain fields that have to be in all of them (creation-date, rating, etc). is there a way to specify this somehow? i tried to inherit the model, and while it seems to create the correct tables, the queries later do not work :-( so i assume model-in

Re: how to iterate over a subset of model.all

2006-05-14 Thread Malcolm Tredinnick
On Sun, 2006-05-14 at 15:13 +0530, Amit Upadhyay wrote: > Lets say I have a Author and Article models, related via many to many. > On the profile view of authors I want to show the articles they > contributed to, but not all of them. The number is purely a decision > of the designer, how does one

Re: Dilemma: code duplication or complexity?

2006-05-14 Thread dr . virago
Thanks for reading up to there :-) This is getting off-topic for this mailing list, but there are 2 reasons: - main reason is that I don't need all features of Trac, only a basic ticket system stuff, and I must adapt it to our working methods (translation: weird management methods) - minor reas

how to iterate over a subset of model.all

2006-05-14 Thread Amit Upadhyay
Lets say I have a Author and Article models, related via many to many. On the profile view of authors I want to show the articles they contributed to, but not all of them. The number is purely a decision of the designer, how does one do a limit/offset in template? -- Amit UpadhyayBlog: http://www.r