Re: runserver ignoring SCRIPT_NAME?

2013-10-14 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

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,

Re: Model translation

2010-08-06 Thread JK Laiho
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 received this message because you

Re: Model translation

2010-08-06 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 message be

Re: Model translation

2010-08-05 Thread JK Laiho
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...@google

Re: Model translation

2010-08-05 Thread JK Laiho
. In a perfect world, databases wouldn't suck this much as a means of holding a variable number of translated versions of a column's data. Instead, a TRANSLATED_VARCHAR(255) column called "name" could have any number of translations stored along with the default language, all of which

Re: Proposal/RFC: assertContextContains

2010-06-25 Thread JK Laiho
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, supported set of assertion methods. Thanks for the feedback! Live and learn :-

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-24 Thread JK Laiho
l 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=''): """ Asserts that response.contex

Proposal/RFC: assertContextContains

2010-06-24 Thread JK Laiho
ates 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-develop...@googlegroups.com. To unsubscribe f

Re: Model translation

2009-12-22 Thread JK Laiho
ugh. 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 received this message because you are subscribed to the Goo