Hi,
Can you confirm that you’re using the development version of Mezzanine and
not the version available through pip.
Also what is your version of Django and django-modeltranslation?
Even though it might not be related, you mentionned adding languages to
settings.LANGUAGES; but do you have a settings.LANGUAGE_CODE defined?
Le vendredi 12 juin 2015 10:48:53 UTC+2, سید محمد رضا طباطبائی a écrit :
>
> i do this work to make multi lingual Sites whit mezzanine
> 1-
> $ mezzanine-project test
> cd test
>
> 2- edit setting.py USE_MODELTRANSLATION = False to USE_MODELTRANSLATION =
> True
> 3- add another languge to LANGUAGES in setting.py
> 4- run
> $python3 manage.py createdb
>
> but show this message
>
> $ python3 manage.py createdb
> /usr/local/lib/python3.3/dist-packages/Mezzanine-3.1.10-py3.3.egg/
> mezzanine/utils/conf.py:51: UserWarning: You haven't defined the
> ALLOWED_HOSTS settings, which Django requires. Will fall back to the
> domains configured as sites.
> warn("You haven't defined the ALLOWED_HOSTS settings, which "
> /usr/local/lib/python3.3/dist-packages/Mezzanine-3.1.10-py3.3.egg/mezzanine/utils/conf.py:59:
>
> UserWarning: TIME_ZONE setting is not set, using closest match: Asia/Tehran
> warn("TIME_ZONE setting is not set, using closest match: %s" % tz)
> /usr/lib/python3.3/importlib/_bootstrap.py:313: RemovedInDjango19Warning:
> django.contrib.contenttypes.generic is deprecated and will be removed in
> Django 1.9. Its contents have been moved to the fields, forms, and admin
> submodules of django.contrib.contenttypes.
> return f(*args, **kwds)
>
> /usr/lib/python3.3/importlib/_bootstrap.py:313: RemovedInDjango19Warning:
> django.utils.importlib will be removed in Django 1.9.
> return f(*args, **kwds)
>
> Traceback (most recent call last):
> File "manage.py", line 34, in <module>
> execute_from_command_line(sys.argv)
> File "/usr/local/lib/python3.3/dist-packages/django/core/management/
> __init__.py", line 338, in execute_from_command_line
> utility.execute()
> File "/usr/local/lib/python3.3/dist-packages/django/core/management/
> __init__.py", line 312, in execute
> django.setup()
> File "/usr/local/lib/python3.3/dist-packages/django/__init__.py", line
> 18, in setup
> apps.populate(settings.INSTALLED_APPS)
> File "/usr/local/lib/python3.3/dist-packages/django/apps/registry.py",
> line 115, in populate
> app_config.ready()
> File "/usr/local/lib/python3.3/dist-packages/modeltranslation/apps.py",
> line 11, in ready
> handle_translation_registrations()
> File "/usr/local/lib/python3.3/dist-packages/modeltranslation/models.py",
> line 80, in handle_translation_registrations
> autodiscover()
> File "/usr/local/lib/python3.3/dist-packages/modeltranslation/models.py",
> line 17, in autodiscover
> from modeltranslation.translator import translator
> File "/usr/local/lib/python3.3/dist-packages/modeltranslation/translator
> .py", line 12, in <module>
> from modeltranslation.manager import (MultilingualManager,
> MultilingualQuerysetManager,
> File "/usr/local/lib/python3.3/dist-packages/modeltranslation/manager.py",
> line 12, in <module>
> from django.db.models.fields.related import RelatedField, RelatedObject
> ImportError: cannot import name RelatedObject
>
>
> how solve this problem???
>
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.