django-hvad 0.5.1

A content translation framework for django integrated automatically in the normal ORM. Removes the pain of having to think about translations in a django project.

Model translations made easy.

This project is yet another attempt at making model translations suck less in Django. It uses an automatically created Translations Model to store translatable fields in arbitrary languages with a foreign key to the main model.

Features

  • Simple API - less than 10 new methods.
  • Reliable - more than 200 test cases and counting.
  • Versatile - can manipulate arbitrary languages without changing the DB schema.
  • Complete - supports relationships, proxy models, and - from v0.5 - abstract models.
  • Fast - few and simple queries
  • High level - no custom SQL Compiler or other scary things
  • Batteries included - translation-enabled forms and admin are provided.
  • Compatible with Django 1.3 to 1.7, running Python 2.6+ or 3.3+.

Example

Normal.objects.all()

Returns all objects, but without any translated fields attached - this query is just the default django queryset and can therefore be used as usual.

Normal.objects.language().all()

Returns all objects as translated instances, but only the ones that are translated into the currect language. You can also specify which language to get, using e.g.

Normal.objects.language("en").all()

Thanks to

Jonas Obrist (https://github.com/ojii) for making django-nani and for helping me with this project.

Author

Kristian Ollegaard

Pip

django-hvad==0.5.1

Classifiers

  • Topic :: Internet :: WWW/HTTP :: Dynamic Content
  • Topic :: Database
  • Programming Language :: Python :: 3.4
  • Programming Language :: Python :: 3.3
  • Programming Language :: Python :: 2.7
  • Programming Language :: Python :: 2.6
  • Operating System :: OS Independent
  • License :: OSI Approved :: BSD License
  • Intended Audience :: Developers
  • Framework :: Django
  • Development Status :: 3 - Alpha
File Type Python Version Uploaded On Downloads
django-hvad-0.5.1.zip Source Oct. 23, 2014 268
django-hvad-0.5.1.tar.gz Source Oct. 23, 2014 578
Version Release Date
0.5.1 Oct. 23, 2014
0.5.0 Sept. 11, 2014
0.4.1 June 1, 2014
0.4.0 May 20, 2014
0.3 May 18, 2013
0.2 Aug. 13, 2012
0.1.5 Feb. 2, 2012
0.1.4 Nov. 29, 2011
0.1.2 Oct. 17, 2011
0.1.1 Sept. 28, 2011
0.1.0 Sept. 22, 2011
0.0.6 Sept. 20, 2011
0.0.5 Sept. 7, 2011
0.0.4 Sept. 6, 2011
0.0.3 Sept. 5, 2011
Date Package Version Action
Nov. 4, 2014, 1:18 p.m. django-hvad 0.5.1 Release Created
Nov. 4, 2014, 1:18 p.m. django-hvad 0.5.0 Release Created
Nov. 4, 2014, 1:18 p.m. django-hvad 0.1.2 Release Created
Nov. 4, 2014, 1:18 p.m. django-hvad 0.4.0 Release Created
Nov. 4, 2014, 1:18 p.m. django-hvad 0.4.1 Release Created
Nov. 4, 2014, 1:18 p.m. django-hvad 0.1.1 Release Created
Nov. 4, 2014, 1:18 p.m. django-hvad 0.1.0 Release Created
Nov. 4, 2014, 1:18 p.m. django-hvad 0.1.5 Release Created
Nov. 4, 2014, 1:18 p.m. django-hvad 0.2 Release Created
Nov. 4, 2014, 1:18 p.m. django-hvad 0.3 Release Created
Nov. 4, 2014, 1:18 p.m. django-hvad 0.1.4 Release Created
Nov. 4, 2014, 1:18 p.m. django-hvad 0.0.3 Release Created
Nov. 4, 2014, 1:18 p.m. django-hvad 0.0.6 Release Created
Nov. 4, 2014, 1:18 p.m. django-hvad 0.0.4 Release Created
Nov. 4, 2014, 1:18 p.m. django-hvad 0.0.5 Release Created
Nov. 4, 2014, 1:18 p.m. django-hvad Package Created