Re: how are you handling i18n and m10l content?

2006-11-08 Thread fdb
I'd like to show you my approach, which I use for one of my clients. For every model that needs to have multi-lingual content, you add two fields: a "language" and a "translation_of" field. Objects are created in a default language (altough this is not required). To translate an object, you crea

Re: how are you handling i18n and m10l content?

2006-11-09 Thread fdb
Kenneth Gonsalves wrote: > i took a look at this - it seems to imply that there is only one > translateable field in the model (I may be wrong). But for me a > typical page model would have several Char fields and more than one > text field. How does one handle that? I was thinking having Actuall

How to check if a request was a POST or GET

2006-08-24 Thread fdb
Hi, I'm trying to detect if a request is a POST or a GET. This is what I'm doing: if request.POST: # do stuff However, this only works if there are some variables in the POST. The request I'm doing is empty (it's an ajax "delete" request). Is there a way to check if the request was a POST,

Re: How to check if a request was a POST or GET

2006-08-24 Thread fdb
Thanks! That's what I needed! Kind regards, Frederik --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from thi