Re: Odp: Re: Odp: Re: Storing language in session/cookie

2011-06-27 Thread Max Arnold
Another approach is to store language in the url (useful for mobile handsets where disabled or unsupported cookies is still an issue). Django app which uses this method: https://bitbucket.org/carljm/django-localeurl -- You received this message because you are subscribed to the Google Groups

Re: Per-country URLs

2014-07-08 Thread Max Arnold
On Tue, Jul 08, 2014 at 04:42:14PM +0200, Aymeric Augustin wrote: > Hello, > > Since Django 1.4, it's possible to localize URL patterns with > i18n_patterns. I have a slightly different use case. I need URLs in the > form /// in order to implement country-specific behavior > (eg. taxes, local regu

Re: Proposal to format Django using black

2019-04-27 Thread Max Arnold
Once the DEP is ready, maybe it would make sense to discuss the above-mentioned concerns with Ɓukasz Langa? Black is quite opinionated, but Django is a well-known project in the Python ecosystem, and its weight could lead to some adjustments (or at least future stability guarantees) in black?

Re: Replacing the contrib.sites Site model with a setting?

2016-01-29 Thread Max Arnold
What if this list of sites needs to be changed dynamically without app restart (multitenancy)? On Fri, Jan 29, 2016 at 12:45:02PM -0800, Tim Graham wrote: > In another thread about adding a "scheme" field to the Site model [1], I > floated the idea of moving the data stored by the Site model int