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,
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
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???
>
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]
--~--~-~--~~--
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
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]
--~--~-~--~~--
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)
7 matches
Mail list logo