is my DateTimeField in the past?

2009-06-07 Thread Mozey
Here is my two attempts at trying to test if my DateTimeField is in the past or the future. # first attempt def past(self): return self.scheduled_time < datetime.now() # It complained that i cannot compare a datetime to a string, hence my second attempt # second attempt def past(self):

Re: question about generic many to many relations

2009-05-31 Thread Mozey
There, i found a better way of doing it!, thanks peopel, On May 31, 11:15 am, Mozey <moha...@mozey.org> wrote: > Hello people, > > I have a model object "X", which allows other model objects to relate > many to many to it through generic table "Y". Both

question about generic many to many relations

2009-05-31 Thread Mozey
Hello people, I have a model object "X", which allows other model objects to relate many to many to it through generic table "Y". Both kept in one app. In another app, i have two model objects "J", and "K" who are related to "X" through "Y". The instances of "K" should be a subset of "J". How

Avoiding unnecessary ajax

2009-05-24 Thread Mozey
I'm developing a very simple application which contains objects of things. These objects are categorized, the categories are kept on the side bar. The side bar will be there at all times. In order to avoid having to fetch a list of categories at all of my views. I'm simply populating the list of

Re: Creating a system with multiple types of users

2008-10-21 Thread Mozey
Well, django user auth has groups implemented. "It handles user accounts, groups, permissions and cookie-based user sessions." (http://docs.djangoproject.com/en/dev/topics/auth/? from=olddocs) How can you effectively separate their views. Separate your apps based on their nature, not based on

Re: App with time zones

2008-10-18 Thread Mozey
it sure does, thank you, i think thats exactly what i need. On Oct 15, 11:16 am, Katja Loeffler <[EMAIL PROTECTED]> wrote: > > I found couple of googlecode projects that seem like they may help me, > > but they seem to be SERIOUSLY pre alpha!. > > > Any pointers? or ideas on how i can go about

App with time zones

2008-10-15 Thread Mozey
Hello everybody, My application requires me to store events from all over the world. Which would mean that i need the time that an event starts, up to the time that an event ends. So an example, May 3rd, 3:40 PM May 3rd, 3:50 PM GMT +4 I have a quick table with all of the