Re: Model translation

2009-12-22 Thread JK Laiho
(3-4 months or so). Absolutely, positively no promises, though. Procrastinating endlessly and losing motivation altogether are a distinct possibility :-). But still, if and when the discussion pops up again later on, I might have some ideas and/or code to share. Until then. - JK Laiho -- You

Proposal/RFC: assertContextContains

2010-06-24 Thread JK Laiho
duced those responses out of those templates seems like a logical addition. But what do you think? Is it worth the effort? - JK Laiho -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-devel

Re: Proposal/RFC: assertContextContains

2010-06-24 Thread JK Laiho
't go any further. If the general idea is approved, I'll post a proper diff into a new ticket, with any modifications suggested here. - JK Laiho - - - - - def assertContextContains(self, response, varname=None, variables=[], dictionary={}, msg_prefix=&

Re: Proposal/RFC: assertContextContains

2010-06-24 Thread JK Laiho
(Looks like I sort of reinvented *args and *kwargs there. Using them might look nicer, but none of the other assertion methods use them and I modeled to be in line with them.) -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this

Re: Proposal/RFC: assertContextContains

2010-06-25 Thread JK Laiho
iew code, and it did work as advertised in all of them. I'll probably keep it around in my own toolkit just for this key-value purpose, but having read the comments of that ticket I understand why it wouldn't necessarily make sense on the framework level as part of the standardized, sup

Re: Model translation

2010-08-05 Thread JK Laiho
le with this approach, either. Anyway, no need to pile on me calling me stupid for all the shortcomings that my ideas inevitably have :-). Just throwing things out there, maybe someone smarter will be inspired to create something that actually works. In a perfect world, databases wouldn't suck

Re: Model translation

2010-08-05 Thread JK Laiho
to be the ShadowO2O. - JK Laiho -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr

Re: Model translation

2010-08-05 Thread JK Laiho
> Actually there is a model translation app which uses a very similar > approach to what you describe and already covers a good chunk of your > 6 points. Huh. That's interesting, I hadn't heard of that. Will take a look. Thanks! - JK Laiho -- You received this mess

Re: Model translation

2010-08-06 Thread JK Laiho
a betting man, but I'd be surprised if that didn't grow into the de facto model translation approach in time. I'm just glad I don't have to think about the model translation problem anymore, I was exhausted just writing that monster post yesterday :-) - JK Laiho -- You receive

runserver ignoring SCRIPT_NAME?

2013-10-11 Thread JK Laiho
Hi all, I'm developing a Django site that will be served in production by nginx-proxied gunicorn. The site is mounted on a subpath, and the nginx config sets SCRIPT_NAME to /path to facilitate this. This arrangement works fine with gunicorn, which I've got set up in my Vagrant environment, but

Re: runserver ignoring SCRIPT_NAME?

2013-10-13 Thread JK Laiho
Thanks for your replies. Seeing as this seems to be quite specific to my current setup, I'll just try to solve this for my use case by replacing or wrapping one of the components that make up the machinery behind the runserver command. If the result is worth publicizing, I might put it up on Gi