DRY in templates

2006-10-03 Thread Luis P. Mendes
tes and would import the data blocks of each of them. My question is this one: Is there a way I don't have to repeat the same template coding for the above illustrated example? Luis P. Mendes --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: variable multiple filter question

2006-09-21 Thread Luis P. Mendes
DavidA escreveu: > You build up a dynamic "and" query with a term for each checked box in > the UI. Then you use that compound query to filter your model objects. > > Now that I think about it, since this is an "and" you could also do: > > def my_view(request): > query = {} > for i in

variable multiple filter question

2006-09-20 Thread Luis P. Mendes
but as names of model's attributes. Since filter accepts a keyword argument, I also tried to use a dictionary as {"var3":True,"var4":False} but with no success. Please, I would very much appreciate your help on this. How c

problem chained filter

2006-09-07 Thread Luis P. Mendes
Hi, I want a user to select a multiple filter through check boxes. The problem is that filtering in django doesn't return all the expected results. I tried both chained filtering and filters with anded conditions and the result is no different. I'm I missing something? Where's the flaw?

Re: Problem accessing users and groups in Admin

2006-09-01 Thread Luis P. Mendes
Jay Parlar escreveu: > On 8/30/06, Luis P. Mendes <[EMAIL PROTECTED]> wrote: > >> I have something to add: >> - I can add or delete 'fichas' from the admin site with no problem. >> - This 0.95 version is an upgrade from 0.91. >> > > Th

Re: Problem accessing users and groups in Admin

2006-08-30 Thread Luis P. Mendes
Jay Parlar escreveu: > On 8/29/06, Luis P. Mendes <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I posted this on Saturday, but since I had no replies, I'm reposting it. >> >> What should I look for to solve this problem: >> >> When I access htt

Problem accessing users and groups in Admin

2006-08-29 Thread Luis P. Mendes
dmin/auth/user/add/ Request information GET No GET data POST No POST data . What should I try to look for to solve this problem? Luis P. Mendes --~--~-~--~~~---~--~~ You received this message because you are subscribed

Problem accessing users and groups in Admin

2006-08-26 Thread Luis P. Mendes
t;%s | %s" % (self.content_type, self.name) File "/usr/lib/python2.4/site-packages/Django-0.95-py2.4.egg/django/db/models/fields/related.py" in __get__ 163. raise self.field.rel.to.DoesNotExist DoesNotExist at /admin/auth/user/add/ Request information GET No GET data POS

admin, users, groups and permissions

2006-08-23 Thread Luis P. Mendes
that can be available by default? My admin interface has another issue that I think it was not supposed to happen. I can see a list of the users but when I try do access each of them, the web page required is not found. Do I have to insert so

Re: how to assign permissions to users and groups?

2006-08-22 Thread Luis P. Mendes
thank you for your help! Luis P. Mendes Chris Long escreveu: > To add permissions. > For user: user.user_permissions.add(perm) > (I think, don't have the chance to double check) For group: > group.permissions.add(perm) > > For your question, the permission table contain

Re: how to assign permissions to users and groups?

2006-08-21 Thread Luis P. Mendes
Chris Long escreveu: > If I have a group instance called students and I wanted to add it to > the user instance bill I would use: > bill.groups.add(students) > > If you want to have a permission for a view, you will have to use the > has_perm method that is within the user model (user.has_perm)

how to assign permissions to users and groups?

2006-08-21 Thread Luis P. Mendes
oth entries correct? What I really need is that someone could show me an example of: - assigning a user to a group; - assign a user permission to a view; - assign a group permission to a view. Sorry if this is a very trivial problem, but I really need an example to help understand how this works. Luis P

Re: render to screen and dynamic file

2006-06-27 Thread Luis P. Mendes
to press the button (unless of course > they wait days, and expire the cookie). > Thank you for your answer. Would you mind sending me some link where such an example is implemented, if possible? It's easier to code with an example. Luis P. Mendes -BEGIN PGP SIGNATURE- Version: G

Re: render to screen and dynamic file

2006-06-23 Thread Luis P. Mendes
em to address my question of generating both a web page and a file at the same time of the latter after pressing a button in the former. Luis P. Mendes --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&qu

render to screen and dynamic file

2006-06-23 Thread Luis P. Mendes
some minutes to press the button. I'd appreciate some insights on this problem. Thank you in advance, Luis P. Mendes --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: got unexpected keyword argument

2006-05-03 Thread Luis P. Mendes
thank you all for your help! Luis P. Mendes --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from

got unexpected keyword argument

2006-04-28 Thread Luis P. Mendes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm using version 0.91. To put it short, I get a TypeError when I try to use a foreign key. Here's what I have: _In Postgresql_ TABLE "cadastro_servicos" ( ~"id" serial NOT NULL PRIMARY KEY, ~"codigo" text NOT NULL, ~"nome" varchar(

Re: advice location of site for production and devel

2006-04-09 Thread Luis P. Mendes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thank you for your help. I was able to load the index page of the only application I developed of my project using apache, but I needed to change some urls. I haven't yet understand this process completely. So I ask you for some 'light'. I have th

advice location of site for production and devel

2006-04-04 Thread Luis P. Mendes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm building my first dynamic web site using Django. mod_python is installed and runs well. I tried the example supplied at its docs. I thought of having a development site under my /home account and it is running fine with the django pre-buil