Re: Permissions: is something wrong with them?

2009-01-01 Thread Artem Skvira
Well, it's not the usage I'm not clear on but rather architecture. Would anyone be able to comment on the issues raised? Thanks On Jan 2, 2:20 pm, Jeff Anderson wrote: > Artem Skvira wrote: > > Is it worth asking this question is dev group? > > No. Your usage

Incorrect date value: '%2008-10-10%' while searching

2009-01-01 Thread Praveen
By product name : By date approval : views.py import Q def proreport(request): query = request.GET.get('q', '') query1 = request.GET.get('p', '') print query print query1 if query and query1 : qset = (

Re: Weird Behavior in Template Rendering: First Letter Only ?!?!

2009-01-01 Thread alex.gay...@gmail.com
I'm not sure what you're passing to the template, but when you iterate over a form it doesn't yield the actual fields, it yields BoundField instances. Alex On Jan 1, 11:57 pm, Keyton Weissinger wrote: > OK. I changed the code below to (note .items): > > {% for key, value_list

Re: Weird Behavior in Template Rendering: First Letter Only ?!?!

2009-01-01 Thread Keyton Weissinger
OK. I changed the code below to (note .items): {% for key, value_list in my_dict.items %} {{ key }} {% for item in value_list %} {{ item }} {% endfor %} {% endfor %} Now I get the full key value but for each item (which again is a form field) I get something like this

Weird Behavior in Template Rendering: First Letter Only ?!?!

2009-01-01 Thread Keyton Weissinger
I'm passing a dictionary of values that look something like this: {'name1':[field1, field2, field3], 'name2':[field4, field5,field6]..} Each key is a simple string and each value is a list of form fields. I should be able to do something like this in the template to render same: {% for key,

Re: Slow application performance...

2009-01-01 Thread Graham Dumpleton
On Jan 2, 2:17 pm, Jeff Anderson wrote: > vernon wrote: > > Hi everyone, > > > When I was first experimenting with Django on my local machine with > > the bundled webserver, one of the things I was really impressed by was > > the speed — everything was instantaneous.

Re: Permissions: is something wrong with them?

2009-01-01 Thread Jeff Anderson
Artem Skvira wrote: > Is it worth asking this question is dev group? > No. Your usage question does not belong on the dev group. It belongs here, on the user group. signature.asc Description: OpenPGP digital signature

Re: Slow application performance...

2009-01-01 Thread Jeff Anderson
vernon wrote: > Hi everyone, > > When I was first experimenting with Django on my local machine with > the bundled webserver, one of the things I was really impressed by was > the speed — everything was instantaneous. Listing things in the DB, > modifying and saving changes etc... > > I finally

Slow application performance...

2009-01-01 Thread vernon
Hi everyone, When I was first experimenting with Django on my local machine with the bundled webserver, one of the things I was really impressed by was the speed — everything was instantaneous. Listing things in the DB, modifying and saving changes etc... I finally decided to deploy the

Re: "Practical Django Projects" -- browsing by tag

2009-01-01 Thread waltbrad
On Jan 1, 3:23 pm, waltbrad wrote: > > Okay, I'm getting closer.  By using this code: > Okay, again. I think I'm getting closer yet. After looking into the documentation, I changed the code to use the (% url %} template tag. I previously thought you could only use that

Re: Ordering ForeignKey lists in admin change view

2009-01-01 Thread janedenone
Thanks a lot! - Jan --~--~-~--~~~---~--~~ 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 this group, send email to

Re: about templatetags

2009-01-01 Thread Russell Keith-Magee
On Fri, Jan 2, 2009 at 1:01 AM, Alan wrote: > Hi Russell > Thank you very much for your explanation. > I understand that being an apps reusable, should it be so its templatetags > and so, probably, the best place is in apps folder. > However, in my case, where all my apps

swapping out request.user in views

2009-01-01 Thread nbv4
I have a webapp that is accessed by the following urls (among others): example.com/foobar-page-23 example.com/preferences example.com/barfoo etc. When these URL's are access, the page is displayed using data from the user who is logged in via request.user. I also want it so the user can link

Re: "Practical Django Projects" -- browsing by tag

2009-01-01 Thread waltbrad
On Jan 1, 2:42 pm, waltbrad wrote: > Let me try this again, I'm not sure my other post was understood very > well. > > In Bennett's book he wants the Coltrane blog to allow browsing of > entries and links by tag.  So, I'm trying to write the tag templates > to that end.

"Practical Django Projects" -- browsing by tag

2009-01-01 Thread waltbrad
Let me try this again, I'm not sure my other post was understood very well. In Bennett's book he wants the Coltrane blog to allow browsing of entries and links by tag. So, I'm trying to write the tag templates to that end. But I don't see how this can be done with the code from the book. I've

Re: Performance of include tag

2009-01-01 Thread Jarek Zgoda
Wiadomość napisana w dniu 2009-01-01, o godz. 19:07, przez Michał Moroz: > I don't think this is optimal - after some looking at code there would > be a get_template() called 30 times. On the other hand, writing > ifequal tags for each type of message in main template should be > faster, but the

Performance of include tag

2009-01-01 Thread Michał Moroz
Hello, Djangoists! I'm wondering how fast is the include tag. Currently I have a Message model, which takes role of site messaging system with two ways of delivering - through a dashboard page and through Jabber. Via Jabber, each type of message has dedicated template and that template is then

Re: memory use in django database queries

2009-01-01 Thread garyrob
Your suggestion about iterator is just what I was looking for! values_list() is also good to know about. Many thanks! On Dec 28 2008, 10:39 pm, "join.toget...@gmail.com" wrote: > Three things: > > 1:http://docs.djangoproject.com/en/dev/ref/models/querysets/#iterator >

Re: about templatetags

2009-01-01 Thread Fatrix
Hi For the organisation matter you could create an app called "core" or whatever, in it you can place all the general stuff. CU, Fatrix --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Iowa Python Users Group Meeting (Jan. 5, 2009)

2009-01-01 Thread Mike Driscoll
Hi, The next Iowa Python Users Group meeting is Monday, January 5th, 2009, barring bad weather. We will be meeting from 7-9 p.m. at the following location: Marshall County Sheriff's Office 2369 Jessup Ave Marshalltown, IA 50158 Currently we have one tentative speaker scheduled and a workshop

Re: about templatetags

2009-01-01 Thread Alan
Hi Russell Thank you very much for your explanation. I understand that being an apps reusable, should it be so its templatetags and so, probably, the best place is in apps folder. However, in my case, where all my apps needs the same templatetags, I would like to have the option of defining

Re: NetBeans IDE for Python

2009-01-01 Thread AndyB
They don't want to make it too easy now do they! I'd love to try it out but it will have to wait until there's an idiot's installer :) On Jan 1, 3:16 am, urlwolf wrote: > actually, it looks like one has to build netbeans from source... not > being a java person, how dif

Re: Invalid block tag: render_comment_form

2009-01-01 Thread MariusB
I'm also using Django 1.0 [1.0-final-SVN-unknown] and I was getting Invalid block tag errors while using both: * {% comment_form %} and * {% free_comment_form %} The solution that works for me is: {% render_comment_form %} with the syntax: * {% render_comment_form for [object] %} * {%

Re: in db/models/query.py - TypeError: 'exceptions.IndexError' object is not callable

2009-01-01 Thread Daniel Roseman
On Dec 31 2008, 11:58 pm, gkelly wrote: > I am having the following error sent to my email from a live site. I > haven't been able to reproduce the error myself, but was hoping > someone could point me in the right direction as to how to solve this. > > First of all, is it

Re: Permissions: is something wrong with them?

2009-01-01 Thread Artem Skvira
Is it worth asking this question is dev group? On Dec 31 2008, 1:56 am, Artem Skvira wrote: > Hi all, > > I have some issues with djangopermissionsmodel. Please bear in mind > that I have just started learning django so feel free to correct me if > I'm wrong :) > > First

Re: Permissions: is something wrong with them?

2009-01-01 Thread Artem Skvira
Is it worth asking this question is dev group? On Dec 31 2008, 1:56 am, Artem Skvira wrote: > Hi all, > > I have some issues with djangopermissionsmodel. Please bear in mind > that I have just started learning django so feel free to correct me if > I'm wrong :) > > First