using recaptcha with django's contrib comments module

2007-06-22 Thread Eric St-Jean
Hi, Short form of my question: i have a custom view which does some work and then calls django.contrib.comments.views.comments.post_free_comment; i've customized the templates/comments/free_preview.html, and i would like my custom view to somehow pass an additional variable to that template,

flatpages and i18n???

2007-06-22 Thread Eric St-Jean
e an opinion on how best to approach this. Please share if that's the case. Thank you! -- ______ Eric St-Jean[EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: flatpages and i18n???

2007-06-24 Thread Eric St-Jean
nevermind... i should have looked at the flatpages module before posting: it's super simple. I'll just copy it to my apps and modify it.... Eric St-Jean a écrit : > Hi, > Is there a way to specify different flatpages for the same url, but for > a different language??? >

Re: using recaptcha with django's contrib comments module

2007-06-25 Thread Eric St-Jean
s the parameter > passed like this: {{ request.custom_parameter }}. but this is precisely the info i was looking for. thanks a bunch! > Maybe this is not the nicest solution in the world, but it works. -- ______ Eric St-Jean[EMAIL PROTECTED] --~--~-~--~~--

admin forms lose javascript with mod_python

2007-06-26 Thread Eric St-Jean
I have a weird problem where if i run django standalone, i see the calendar widget by a DateField entry in the admin form, but when run from mod_python, i lose it. (i lose the calendar date picking widget, and the "today" shortcut) /media *is* working - the css gets loaded properly. I'm using t

Re: admin forms lose javascript with mod_python

2007-06-27 Thread Eric St-Jean
the problem nicely. PS: i use apache+mod_python simply because i have a few other apps that are raw mod_python, so i need apache+mod_python anyways - i might a well use it for django, too. -- __ Eric St-Jean[EMAIL PROTECTED] --~--~-~--~~--

a generic JSON serializer???

2007-07-26 Thread Eric St-Jean
Hi, There does not seem to be an easy way to serialize anything to JSON: serializers.serialize will handle a QuerySet simplejson.dumps will handle normal python data structures But what about a python dict which has a django model instance in it, for example??? Or a Field? Sure, i can (and did)