from modeltranslation.translator import *#register,translator, TranslationOptions
from i18ntest.models import MyThing
@register(MyThing)
class MyThingTranslationOptions(TranslationOptions):
fields = ('name',)
my models.py
from django.db import models
from django.utils.translation import ugettext_lazy
from django.conf import settings
class MyThing(models.Model):
name = models.CharField(max_length = 150,null = True, blank = True)
def __unicode__(self):
return self.name
my server status is:
(envi18n) vinod@vinod-H81M-S:~/i18n$./manage.py runserver
modeltranslation: Registered 0 models for translation () [pid: 5675].
modeltranslation: Registered 0 models for translation () [pid: 5678].
Performing system checks...
System check identified no issues (0 silenced).
February 23, 2017 - 07:31:37
Django version 1.10, using settings 'i18n.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Hello django-modeltranslation dev team.
I'm using Django-modeltranlation 0.12 with Django 1.10 i'm not able to registered my model for translation
in setting.py
in translations.py
my models.py
my server status is:
Pls solve issue