Upgrade to Pro — share decks privately, control downloads, hide ads and more …

django-parler - DjangoCon EU 2014 lightning talk

django-parler - DjangoCon EU 2014 lightning talk

Extended version of my previous django-parler presentation. Explain why django-modeltranslation or django-hvad were nog used, and what complex inheritance I'd faced. Now features such as:

* Python 3 support
* Prefetching translations
* Caching
* High-level features such as `{% get_translated_url %}`.
* Admin inlines

Easily translate cheese omelet into omelette du fromage.

Diederik van der Boor

May 15, 2014
Tweet

More Decks by Diederik van der Boor

Other Decks in Programming

Transcript

  1. django-hvad :-( Very nice admin, awesome API – however: Overrides

    just about all ORM methods! Lots of metaclass magic Mixing translated with untranslated objects = hard Can't be combined with other apps (mptt, polymorphic, shop) Doesn't call super() often
  2. Package that! So we: – Hacked something directly in the

    CMS app – K.I.S.S – Manually created translated fields table – Manually assigned descriptors – Hey that works!!