Re: passing variable values in javascript being served statically

2010-05-24 Thread Rodrigue Villetard
oups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Rodrigue Villetard -- You received this message because you are su

Using StdImageField in an inherit context

2010-05-24 Thread Rodrigue Villetard
me my paid job. I wanted a full friendly community developped framework and the little i've seen from django is far more attractive than Zend Framework... Have a nice end of week end. Rodrigue V. -- You received this message because you are subscribed to the Google Groups "Django users&q

Using StdImageField in an inherit context

2010-05-23 Thread Rodrigue Villetard
nd Framework... I've a nice end of week end. Rodrigue Villetard -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to d

Re: Model inheritance problem, inherited instances

2009-07-21 Thread Rodrigue
there should be an a_ptr and an a_ptr_id attributes (check with a dir(b) for example). The first one is the instance of A associated with b, and the second the id of that instance of A. So, I imagine that: b = B() b.a_ptr = a b.save() or b = B() b.a_ptr_id = a_id b.save() should do what you wan

Re: How do you unit test forms

2009-07-17 Thread Rodrigue
. Rodrigue On Jul 17, 3:57 am, Russell Keith-Magee wrote: > On Fri, Jul 17, 2009 at 9:56 AM, Joshua Partogi > wrote: > > Hi Russ, > > > To expand this question. Do we use unittest for testing forms? Because from > > what I see in the code, doctest only tests your model.

Re: django-logging and python logging together

2009-07-16 Thread Rodrigue
ere a better way of achieving that? Rodrigue On Jul 13, 12:26 pm, Rodrigue wrote: > Hi all, > > I have been > usingdjango-logging(http://code.google.com/p/django-logging/wiki/Overview) > and found it very useful. However, I configured > python logging for my project anddjango-

django-logging and python logging together

2009-07-13 Thread Rodrigue
the correct term is regarding the logging module). I have tried setting propagate=1 in my logging.conf, hoping that my log messages would be propagated to the root logger but no... Quite perplexed as to what the config is supposed to be. Any idea anyone? Rodrigue --~--~-~--~~~

Re: How to execute more code after sending an HTTP response in a viewfunction?

2009-07-10 Thread Rodrigue
of your db connections and won't close them. Rodrigue On Jul 9, 9:59 pm, Javier Guerra wrote: > On Thu, Jul 9, 2009 at 3:30 PM, Javier Guerra wrote: > > maybe is it possible to use signals like this? i haven't checked the > > source,  but it seems plausible to have them dispatched

Re: Problem with Reverse

2009-07-06 Thread Rodrigue
Are there other urls defined in your file? If so, do the views they reference exist already? Django tries to load all the views it finds in all url files defined. It seems to me that you may have a url mapped to a 'select' view but that view does not exist. On Jul 6, 12:32 pm, Phil wrote: > Hi,

Re: change field value before valid of admin

2009-07-02 Thread Rodrigue
If you're creating your objects through forms, the clean() method on your form may even be a better place for that: http://docs.djangoproject.com/en/dev/ref/forms/validation/#cleaning-and-validating-fields-that-depend-on-each-other Rodrigue On Jul 1, 10:58 am, Kenneth Gonsalves wrote:

Re: Json Serialization / Form Validation error

2008-12-17 Thread Rodrigue
Hi Russell, I bumped into the same issue today and was glad I found this post. However, I found that I had to use unicode() rather than str(), which turns your example into: content = dict((key, [unicode(v) for v in values]) \ for key, values in form.error

test client post exception due to cStringIO

2008-10-08 Thread Rodrigue
Hi all, I am writing some unit tests using the django.test.client.Client to send requests to my views. I'm using django 1.0 final I am having problems when sending a post request though. Here is my code: post_content_type = "application/x-www-form-urlencoded" data = {} data['username'] = 'test

Singleton + Django problem

2007-08-24 Thread Rodrigue
ny help or clue about what goes on inside django that could create this behaviour would be really appreciated. Thank you in advance. Regards, Rodrigue --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django u