i update pip, mezzanin and django-modeltranslation worked correctly
but when update cartridge and tested 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:92: UserWarning: mezzanine.pages.context_processors.page is 
required in the TEMPLATE_CONTEXT_PROCESSORS setting. Adding it now, but you 
should update settings.py to explicitly include it.
  "explicitly include it." % cp)
/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)

Traceback (most recent call last):
  File "manage.py", line 29, 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/django/contrib/admin/apps.py"
, line 22, in ready
    self.module.autodiscover()
  File 
"/usr/local/lib/python3.3/dist-packages/Mezzanine-3.1.10-py3.3.egg/mezzanine/boot/__init__.py"
, line 77, in autodiscover
    django_autodiscover(*args, **kwargs)
  File 
"/usr/local/lib/python3.3/dist-packages/django/contrib/admin/__init__.py", 
line 24, in autodiscover
    autodiscover_modules('admin', register_to=site)
  File 
"/usr/local/lib/python3.3/dist-packages/django/utils/module_loading.py", 
line 74, in autodiscover_modules
    import_module('%s.%s' % (app_config.name, module_to_search))
  File "/usr/lib/python3.3/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in 
_find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 584, in _check_name_wrapper
  File "<frozen importlib._bootstrap>", line 1022, in load_module
  File "<frozen importlib._bootstrap>", line 1003, in load_module
  File "<frozen importlib._bootstrap>", line 560, in 
module_for_loader_wrapper
  File "<frozen importlib._bootstrap>", line 868, in _load_module
  File "<frozen importlib._bootstrap>", line 313, in 
_call_with_frames_removed
  File "/usr/local/lib/python3.3/dist-packages/cartridge/shop/admin.py", 
line 42, in <module>
    from cartridge.shop.forms import ProductAdminForm, 
ProductVariationAdminForm
  File "/usr/local/lib/python3.3/dist-packages/cartridge/shop/forms.py", 
line 476, in <module>
    forms.ModelForm)):
  File "/usr/local/lib/python3.3/dist-packages/future/utils/__init__.py", 
line 123, in __new__
    return meta(name, bases, d)
  File "/usr/local/lib/python3.3/dist-packages/cartridge/shop/forms.py", 
line 472, in __new__
    return super(ProductAdminFormMetaclass, cls).__new__(*args)
  File "/usr/local/lib/python3.3/dist-packages/django/forms/models.py", 
line 274, in __new__
    "needs updating." % name
django.core.exceptions.ImproperlyConfigured: Creating a ModelForm without 
either the 'fields' attribute or the 'exclude' attribute is prohibited; 
form ProductAdminForm needs updating.




در جمعه 12 ژوئن 2015، ساعت 21:11:05 (UTC+4:30)، Mathias Ettinger نوشته:
>
> 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.

Reply via email to