Writing translatable static web pages using Django -


i bit confused on best way handle problem:

my web site needs read-only static web pages (typically part of web site) 2 simple constraints:

  • they need translated
  • they need have flexible layout: incorporate base headers/footers, floating images and/or tables, , non-interactive elements (like bootstrap carousel).

several solutions have thought about:

  • i can of course directly write html files translation part awkward (a lot of <h1>, <ul>, <li> , <p> of no interest translator).
  • i can use django flatpages markup languages lose lot of flexibility (for instance template tags not recognized)
  • use generators hyde, seems quite overkill needs , internationalization seems bit difficult

does have other propositions can ?

thanks !

use django-cms, has page model can translated , has smart plugin system add many content-types every page.

i use lot , it's easy , yet powerful

for completeness , fairness, here's full list of available cms packages django.


for simpler solution, create model called "page" lets title , text fields.

the title , text fields register django-modeltranslation handle translation issue.

for text field use tinymce let insert html want can whatever need.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -