Templates design question

2010-02-15 Thread R. K.
Hello, I'm writing some simple webblog, just for self teaching, and I have a question how to do better. Here is the situation, I have base.html, I have blog.html which extends base. Now in that blog I would like to put posts, full text posts, without comments, and link to the post only with

user login problem

2008-06-21 Thread R. K.
So the problem is, that I can't login regular users, who has is_staff field set to false. If it is set to true, everything is fine. So now what I have: default login function (django.contrib.auth.views.login) and the view which renders the page after login has

Re: has many through relationship

2008-02-03 Thread R. K.
s' object. On Feb 3, 5:29 pm, Eric Abrahamsen <[EMAIL PROTECTED]> wrote: > On Feb 3, 8:31 pm, "R. K." <[EMAIL PROTECTED]> wrote: > > > Hello, I'm wondering if there is such thing in django? For example, > > forum has topics, and topics has posts, so it would

has many through relationship

2008-02-03 Thread R. K.
Hello, I'm wondering if there is such thing in django? For example, forum has topics, and topics has posts, so it would be post has foreign key to topic, and topic has foreign key to forum. And the question is, how to get how many posts forum has? Thanks in advance, R. K