Re: Looking at objects by year, month

2008-05-11 Thread Ryan Vanasse
I ended up using the "divisibleby" filter and that worked out fine. Thank you for both of your ideas! I learn so much through this group. Thank you very much. Ryan Vanasse On May 2, 9:27 pm, Pawel Pilitowski <[EMAIL PROTECTED]> wrote: > Maybe something like this would hel

ifnotequal strange behavior--

2008-05-04 Thread Ryan Vanasse
er have? (I originally used it because i figured that the two DateTime objects wouldn't have the same Time, and so would evaluate to not being equal) Is there any way to get this working the way I envision it? Thanks for your time and patience. ryan vanasse --~--~-~--~~--

Re: Looking at objects by year, month

2008-05-02 Thread Ryan Vanasse
I got my data to populate mostly alright. The key was changing the template example to "{% for month in months.values %}" it wasn't working before that. Now, my problem is that for every month, I want a different color of image text... //blue/orange swap so that on even months i'd have them com

Re: Looking at objects by year, month

2008-05-01 Thread Ryan Vanasse
Is events in: for event in Event.objects.order_by('start_DateTime'): events[event.start_DateTime.month]['events'].append(event) supposed to be months? (looks like months[event.start_DateTime.month] ['events'].append(event) I get a NameError if I leave it as is. when I switch to months

Looking at objects by year, month

2008-04-28 Thread Ryan Vanasse
e a way to insert the key (i.e. 'january'...see the eventsByMonth in my view above) in the image source where I presently have {{ month }}? I'm sorry for thinking about things in such convoluted ways. I'm trying to keep things simpler, but it is a learning process. Thanks

Re: 'HttpResponse' object has no attribute 'rindex' error on 0.96

2008-04-19 Thread Ryan Vanasse
I should have known it was something that simple. Thank you Malcolm. ryan On Apr 19, 1:44 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2008-04-18 at 23:15 -0700, Ryan Vanasse wrote: > > [...] > > > My urls.py looks like this (I'm just getting started

'HttpResponse' object has no attribute 'rindex' error on 0.96

2008-04-18 Thread Ryan Vanasse
novEvents = Event.objects.filter(start_DateTime__month = 11) decEvents = Event.objects.filter(start_DateTime__month = 12) eventsByMonth = {'january':janEvents, 'february':febEvents, 'march':marEvents, 'april':aprEvents, 'may':

Way to show recently updated items from multiple apps?

2008-04-07 Thread Ryan Vanasse
ndering if there is an easy way to implement this so I can have a list that is contains the most recently updated items from multiple apps. Thank you, Ryan Vanasse --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

Re: 'module' object has no attribute 'day_abbr' --Problem editing using Admin

2008-04-02 Thread Ryan Vanasse
;s one of those "duh" things but it's really useful to me when I'm just starting out. Again, thanks! ryan On Apr 2, 1:08 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Wed, Apr 2, 2008 at 1:18 AM, Ryan Vanasse <[EMAIL PROTECTED]> > wrote: > &g

Re: 'module' object has no attribute 'day_abbr' --Problem editing using Admin

2008-04-01 Thread Ryan Vanasse
am, "Erik Vorhes" <[EMAIL PROTECTED]> wrote: > That's because the table storing your information doesn't have an > "EventDate" field, and it can't be ordered by something that doesn't > exist. You'll need to update the table before it will work c

Re: 'module' object has no attribute 'day_abbr' --Problem editing using Admin

2008-03-30 Thread Ryan Vanasse
I just commented out the ordering, and it's bringing up the same error. When I try looking at the Events list (to check if anything was added), and got a Template syntax error. (see below) I used an SQLite admin program to check out what was in the calendar_Events table and found nothing. I have

'module' object has no attribute 'day_abbr' --Problem editing using Admin

2008-03-30 Thread Ryan Vanasse
I'm sorry for writing at such an early, clueless time in my learning process (both with python and django) but this problem appears to be in code I didn't write and I'm not sure what the best way to work around this problem is. I'm sorry for not having lurked more to understand the norms of this g