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

django-parler - Python Meetup in Amsterdam (PUN)

django-parler - Python Meetup in Amsterdam (PUN)

Django model translations; letting users input content in multiple languages.

Diederik van der Boor

November 13, 2013
Tweet

More Decks by Diederik van der Boor

Other Decks in Programming

Transcript

  1. django-parler Easily translate "cheese omelet" into "omelette du fromage". Diederik

    van der Boor Django Meetup 13-11-2013
  2. Simple Django model translations without nasty hacks with nice admin

    integration.
  3. Got hopeful Making a CMS multilingual: Well, let's use something

    existing...
  4. django-hvad: Cool idea, however:

  5. django-hvad Overrides all ORM methods! Lots of metaclass magic Mixing

    {,/\ un}translated objects == hard Can't be combined with other apps (mptt, polymorphic, shop) Doesn't call super()
  6. Package that! – Hack something directly in the CMS app

    – K.I.S.S – Manually create translated fields table – Manually assign descriptors – Hey that works!!
  7. example

  8. Usage

  9. Internals, simplified: descriptors

  10. Admin interface!

  11. None
  12. None
  13. Twitter: @vdboor, @edoburu https://github.com/edoburu/django-parle http://django-fluent.org