Re: Django doesnt allow addition of time when using custom sql query

2008-11-02 Thread reyjexter
dont mind me ppl. i got this working. i simply used a mysql function that returns a string for example TRIM() On Nov 2, 8:26 am, reyjexter <[EMAIL PROTECTED]> wrote: > I'm getting this error: > > Caught an exception while rendering: hour must be in 0..23 > > What I'm d

Django doesnt allow addition of time when using custom sql query

2008-11-02 Thread reyjexter
I'm getting this error: Caught an exception while rendering: hour must be in 0..23 What I'm doing is adding up all the time that was recorded (time field) and I noticed that when ever the total is greater than 23:00:00 this error comes up. I tried executing the same query using a mysql query

problem testing application named "core"

2008-10-21 Thread reyjexter
When running manage.py test core, the test seem to run but no test suite is executed. but when using plain manage.py test its okay. Is this problem caused by the naming? thanks rey --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: How to send emails when after an event happened?

2008-10-19 Thread reyjexter
I think you need to be more specific with what you want to do. On Oct 19, 2:04 pm, Net_Boy <[EMAIL PROTECTED]> wrote: > Hi, > >    I am doing a new project and  (doing a function that checks  for a > specific event, if it happened then the system should send email to > the user? so how can I do

Re: Which IDE do you choose with django?

2008-10-12 Thread reyjexter
I use pydev because I'm more of an eclipse guy -rey On Oct 13, 12:19 am, zjffdu <[EMAIL PROTECTED]> wrote: > I am a newbie of django, and want to know which IDE is suit for > django? > > thank your --~--~-~--~~~---~--~~ You received this message because you are

Re: How to unit test form clean methods

2008-10-12 Thread reyjexter
you can simply create a form on your test case and pass in dictionary to mimic request parameters. I have blogged about it and you can find it here: http://www.reyjexter.com/post/unit-testing-django-component-example -rey On Oct 13, 9:30 am, meppum <[EMAIL PROTECTED]> wrote: > I would like to

problem serving image [ERROR: Page not found: /usr/lib/python2.5/site-packages/djangotrunk/django/contrib/admin/media/amazon.gif]

2008-07-10 Thread reyjexter
I tried following the documentation but I cant seem to serve an image. I'm getting this error: ERROR: Page not found: /usr/lib/python2.5/site-packages/djangotrunk/ django/contrib/admin/media/amazon.gif when trying to browse http://localhost:8080/amazon.gif I run the server using this: