[mezzanine-users] error on post new blog

2015-09-02 Thread سید محمد رضا طباطبائی
AttributeError at /fa/admin/blog/blogpost/ 

'tuple' object has no attribute 'day'

Request Method: GET Request URL: http://mydomain/fa/admin/blog/blogpost/ Django 
Version: 1.8.4 Exception Type: AttributeError Exception Value: 

'tuple' object has no attribute 'day'

Exception Location:/mypath/ 
lib/python3.4/site-packages/django/contrib/admin/templatetags/admin_list.py 
in , line 374



Error during template rendering 

In template 
/mypath/lib/python3.4/site-packages/grappelli_safe/templates/admin/change_list.html,
 
error at line *144*
'tuple' object has no attribute 'day' 134 {% blocktrans with 
cl.result_count as counter %}{{ counter }} found{% endblocktrans %} 135 {% blocktrans with 
cl.full_result_count as full_result_count %}{{ full_result_count }} total{% 
endblocktrans %} 136  137  138 {% endifnotequal %} 139 
140  141 {% block search %}{% search_form cl %}{% endblock 
%} 142 
143  144 {% block date_hierarchy %} {% 
date_hierarchy cl %} {% endblock %} 145 
146 {% if cl.has_filters %} 147  148  149 {% trans 'Filter' %} 150 {% for spec in 
cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %} 151  152 {% 
endif %} 153 
154  

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] error on post new blog

2015-09-02 Thread سید محمد رضا طباطبائی
must be to downgrade Django to v1.7?
don't have any solution??

در چهارشنبه 2 سپتامبر 2015، ساعت 22:19:42 (UTC+4:30)، Ryne Everett نوشته:
>
> Had you seen https://github.com/stephenmcd/mezzanine/issues/1391?
>
> On Wed, Sep 2, 2015 at 11:54 AM, سید محمد رضا طباطبائی <
> mohammadrez...@gmail.com > wrote:
>
>> AttributeError at /fa/admin/blog/blogpost/ 
>>
>> 'tuple' object has no attribute 'day'
>>
>> Request Method: GET Request URL: http://mydomain/fa/admin/blog/blogpost/ 
>> Django 
>> Version: 1.8.4 Exception Type: AttributeError Exception Value: 
>>
>> 'tuple' object has no attribute 'day'
>>
>> Exception Location:/mypath/ 
>> lib/python3.4/site-packages/django/contrib/admin/templatetags/admin_list.py 
>> in , line 374
>>
>>
>>
>> Error during template rendering 
>>
>> In template 
>> /mypath/lib/python3.4/site-packages/grappelli_safe/templates/admin/change_list.html,
>>  
>> error at line *144*
>> 'tuple' object has no attribute 'day' 134 {% blocktrans with 
>> cl.result_count as counter %}{{ counter }} found{% endblocktrans %} 
>> 135 {% blocktrans with 
>> cl.full_result_count as full_result_count %}{{ full_result_count }} total{% 
>> endblocktrans %} 136  137  138 {% endifnotequal %} 139 
>> 140  141 {% block search %}{% search_form cl %}{% 
>> endblock %} 142 
>> 143  144 {% block date_hierarchy %} {% 
>> date_hierarchy cl %} {% endblock %} 145 
>> 146 {% if cl.has_filters %} 147  148  149 {% trans 'Filter' %} 150 {% for spec in 
>> cl.filter_specs %}{% admin_list_filter cl spec %}{% endfor %} 151  
>> 152 {% endif %} 153 
>> 154  
>>
>> -- 
>> 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 mezzanine-use...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] How to change languge combo box theme or view??

2015-07-19 Thread سید محمد رضا طباطبائی
i have 2 language mezzanine website and I want design new template 
How can change language combo box to  button language in template??

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: Mezzanine 4.0 and multi-language selector not working

2015-07-11 Thread سید محمد رضا طباطبائی
i have this problem too 
https://groups.google.com/forum/#!topic/mezzanine-users/Q3qIH19O2g4
i report it in develop version 

در شنبه 11 ژوئیهٔ 2015، ساعت 3:25:37 (UTC+4:30)، David Qixiang Chen نوشته:


 Hi I'm building a multi-lingual site in English and zh-TW (traditional 
 chinese) . 
 I configured it according to the docs, and the admin interface does show 
 the fields for both languages. 

 But I can't get the language selector to work. 
 While the default selector shows the languages listed, selecting them 
 still always result in English. 

 My settings: 

 LANGUAGE_CODE = en


 # Supported languages
 LANGUAGES = (
 ('en', _('English')),

 ('zh-tw',_('Traditional Chinese')),
 )




 USE_I18N = True
 USE_L10N = True


 --- 

 If I change my settings to: 

 LANGUAGE_CODE = zh-tw


 # Supported languages
 LANGUAGES = (
 ('zh-tw',_('Traditional Chinese')),
 )


 The Chinese pages will show properly, although the admin page interface 
 becomes Chinese as well. 

 I feel like I'm missing something obvious, please assist. 

 Thanks




-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: don't change language

2015-06-26 Thread سید محمد رضا طباطبائی
i think so, template have some problem


در سه‌شنبه 16 ژوئن 2015، ساعت 13:29:34 (UTC+4:30)، سید محمد رضا طباطبائی 
نوشته:

 i make multi lingual website but don't change language when click language 
 bar in website 

 when i am run mezzanine show some message what this message ???

 $python3 manage.py runserver
 /usr/lib/python3.4/importlib/_bootstrap.py:321: 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.4/importlib/_bootstrap.py:321: 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)





-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: pip error on install mezzanine

2015-06-18 Thread سید محمد رضا طباطبائی

it is bug for debian based linux distro like ubuntu and mint 
i remove python3-pip whit this command 
$sudo apt-get purge python3-pip

and install manually pip 
$wget https://bootstrap.pypa.io/get-pip.py
$sudo python3 get-pip.py

solved problem 
در سه‌شنبه 16 ژوئن 2015، ساعت 11:28:42 (UTC+4:30)، سید محمد رضا طباطبائی 
نوشته:

 $pip3 install mezzanine
 Traceback (most recent call last):
   File /usr/bin/pip3, line 9, in module
 load_entry_point('pip==1.5.4', 'console_scripts', 'pip3')()
   File /usr/lib/python3/dist-packages/pkg_resources.py, line 351, in 
 load_entry_point
 return get_distribution(dist).load_entry_point(group, name)
   File /usr/lib/python3/dist-packages/pkg_resources.py, line 2363, in 
 load_entry_point
 return ep.load()
   File /usr/lib/python3/dist-packages/pkg_resources.py, line 2088, in 
 load
 entry = __import__(self.module_name, globals(),globals(), ['__name__'
 ])
   File /usr/lib/python3/dist-packages/pip/__init__.py, line 61, in 
 module
 from pip.vcs import git, mercurial, subversion, bazaar  # noqa
   File /usr/lib/python3/dist-packages/pip/vcs/mercurial.py, line 9, in 
 module
 from pip.download import path_to_url
   File /usr/lib/python3/dist-packages/pip/download.py, line 25, in 
 module
 from requests.compat import IncompleteRead
 ImportError: cannot import name 'IncompleteRead'





-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: What's version of python and Django is more compatible with new version of cartridge and mezzanine?

2015-06-16 Thread سید محمد رضا طباطبائی
need root permission to run this command 
$ pip install --upgrade -e git+
https://github.com/stephenmcd/mezzanine.git#egg=Mezzanine-master
$ pip install --upgrade -e git+
https://github.com/stephenmcd/cartridge.git#egg=Cartridge-master 
https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fstephenmcd%2Fcartridge.git%23egg%3DCartridge-mastersa=Dsntz=1usg=AFQjCNGPIO55PGo1suYq8_NY6apOPDEyyQ
if don't use sudo for run command take an error message 


در پنجشنبه 11 ژوئن 2015، ساعت 23:49:39 (UTC+4:30)، سید محمد رضا طباطبائی 
نوشته:

 hi 

 i hava some problem with new version of django for installing cartridge 
 and mezzanine

 like this


 $ python3 manage.py createdb --noinput
 /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: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.


 is cartridge compatible for django 1.8 and python 3.4 ?

 What's version of python and Django is more compatible  and performance 
 with new version of cartridge and mezzanine ??


-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https

Re: [mezzanine-users] Re: how to make two part of blog

2015-06-16 Thread سید محمد رضا طباطبائی
i need multiple blog categories in separate blog 

در سه‌شنبه 16 ژوئن 2015، ساعت 9:53:21 (UTC+4:30)، Josh Cartmell نوشته:

 I would recommend using multiple blog categories.  You can then create 
 links in your menu to /blog/category/[insert-category-slug]/ and it will be 
 as if you have multiple blogs even though you only have one.

 On Mon, Jun 15, 2015 at 10:02 PM, سید محمد رضا طباطبائی 
 mohammadrez...@gmail.com javascript: wrote:

 yes i want two or more separate blog applications

 در سه‌شنبه 16 ژوئن 2015، ساعت 0:16:47 (UTC+4:30)، Kenneth Bolton نوشته:

 Do you mean two or more separate blog applications? Or simply multiple 
 posts within the same blog application? - ken

 On Mon, Jun 15, 2015 at 2:19 PM, سید محمد رضا طباطبائی 
 mohammadrez...@gmail.com wrote:

 i want have two or three Blog Post in admin page and website 
 Blog Post 1
 Blog Post 2
 Blog Post 3
 how can do it ??

 در یکشنبه 14 ژوئن 2015، ساعت 20:26:02 (UTC+4:30)، سید محمد رضا طباطبائی 
 نوشته:

 i need two page like blog how can create and manage it ??? 

  -- 
 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 mezzanine-use...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


  -- 
 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 mezzanine-use...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/d/optout.




-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] pip error on install mezzanine

2015-06-16 Thread سید محمد رضا طباطبائی
$pip3 install mezzanine
Traceback (most recent call last):
  File /usr/bin/pip3, line 9, in module
load_entry_point('pip==1.5.4', 'console_scripts', 'pip3')()
  File /usr/lib/python3/dist-packages/pkg_resources.py, line 351, in 
load_entry_point
return get_distribution(dist).load_entry_point(group, name)
  File /usr/lib/python3/dist-packages/pkg_resources.py, line 2363, in 
load_entry_point
return ep.load()
  File /usr/lib/python3/dist-packages/pkg_resources.py, line 2088, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File /usr/lib/python3/dist-packages/pip/__init__.py, line 61, in 
module
from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File /usr/lib/python3/dist-packages/pip/vcs/mercurial.py, line 9, in 
module
from pip.download import path_to_url
  File /usr/lib/python3/dist-packages/pip/download.py, line 25, in 
module
from requests.compat import IncompleteRead
ImportError: cannot import name 'IncompleteRead'



-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] don't change language

2015-06-16 Thread سید محمد رضا طباطبائی
i make multi lingual website but don't change language when click language 
bar in website 

when i am run mezzanine show some message what this message ???

$python3 manage.py runserver
/usr/lib/python3.4/importlib/_bootstrap.py:321: 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.4/importlib/_bootstrap.py:321: 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)



-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] Re: how to make two part of blog

2015-06-15 Thread سید محمد رضا طباطبائی
yes i want two or more separate blog applications

در سه‌شنبه 16 ژوئن 2015، ساعت 0:16:47 (UTC+4:30)، Kenneth Bolton نوشته:

 Do you mean two or more separate blog applications? Or simply multiple 
 posts within the same blog application? - ken

 On Mon, Jun 15, 2015 at 2:19 PM, سید محمد رضا طباطبائی 
 mohammadrez...@gmail.com javascript: wrote:

 i want have two or three Blog Post in admin page and website 
 Blog Post 1
 Blog Post 2
 Blog Post 3
 how can do it ??

 در یکشنبه 14 ژوئن 2015، ساعت 20:26:02 (UTC+4:30)، سید محمد رضا طباطبائی 
 نوشته:

 i need two page like blog how can create and manage it ??? 

  -- 
 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 mezzanine-use...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/d/optout.




-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: how to make two part of blog

2015-06-15 Thread سید محمد رضا طباطبائی
i want have two or three Blog Post in admin page and website 
Blog Post 1
Blog Post 2
Blog Post 3
how can do it ??

در یکشنبه 14 ژوئن 2015، ساعت 20:26:02 (UTC+4:30)، سید محمد رضا طباطبائی 
نوشته:

 i need two page like blog how can create and manage it ??? 



-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] how design change button language?

2015-06-15 Thread سید محمد رضا طباطبائی
how design change button language in new template ?

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] tutorial for making themplate

2015-06-14 Thread سید محمد رضا طباطبائی
how to create or customize mezzanine multi lingual template ?

is this good tutorial ??
http://bitofpixels.com/blog/mezzatheming-creating-mezzanine-themes-part-1-basehtml/

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] how to make two part of blog

2015-06-14 Thread سید محمد رضا طباطبائی
i need two page like blog how can create and manage it ??? 

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] how change first page content ??

2015-06-14 Thread سید محمد رضا طباطبائی
i want change home page content  in admin page how can i do it???  

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: tutorial for making themplate

2015-06-14 Thread سید محمد رضا طباطبائی
i copy template from /usr/local/lib/python3.3/dist-packages/mezzanine/core  
to my project and edit it. thats worked  nice


در یکشنبه 14 ژوئن 2015، ساعت 20:36:05 (UTC+4:30)، سید محمد رضا طباطبائی 
نوشته:

 how to create or customize mezzanine multi lingual template ?

 is this good tutorial ??

 http://bitofpixels.com/blog/mezzatheming-creating-mezzanine-themes-part-1-basehtml/



-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: error on create mezzanine Multi-Lingual Sites?

2015-06-13 Thread سید محمد رضا طباطبائی
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

[mezzanine-users] error on create mezzanine Multi-Lingual Sites?

2015-06-12 Thread سید محمد رضا طباطبائی
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: Enable Mezzanine multilingual site support

2015-06-12 Thread سید محمد رضا طباطبائی
i tested but don't work 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



-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] What's version of python and Django is more compatible with new version of cartridge and mezzanine?

2015-06-11 Thread سید محمد رضا طباطبائی
hi 

i hava some problem with new version of django for installing cartridge and 
mezzanine

like this


$ python3 manage.py createdb --noinput
/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: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.


is cartridge compatible for django 1.8 and python 3.4 ?

What's version of python and Django is more compatible  and performance 
with new version of cartridge and mezzanine ??

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: What's version of python and Django is more compatible with new version of cartridge and mezzanine?

2015-06-11 Thread سید محمد رضا طباطبائی
 pip install --upgrade -e git+https:
//github.com/stephenmcd/cartridge.git#egg=Cartridge-master
You are using pip version 6.0.8, however version 7.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Obtaining Cartridge-master from git+https:
//github.com/stephenmcd/cartridge.git#egg=Cartridge-master
  Cloning https://github.com/stephenmcd/cartridge.git to 
./src/cartridge-master
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown 
distribution option: 'include_package_data'
  warnings.warn(msg)
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown 
distribution option: 'zip_safe'
  warnings.warn(msg)
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown 
distribution option: 'install_requires'
  warnings.warn(msg)
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown 
distribution option: 'test_suite'
  warnings.warn(msg)
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown 
distribution option: 'tests_require'
  warnings.warn(msg)
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: -c --help [cmd1 cmd2 ...]
   or: -c --help-commands
   or: -c cmd --help
error: invalid command 'egg_info'
Complete output from command python setup.py egg_info:
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown 
distribution option: 'include_package_data'

  warnings.warn(msg)

/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown 
distribution option: 'zip_safe'

  warnings.warn(msg)

/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown 
distribution option: 'install_requires'

  warnings.warn(msg)

/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown 
distribution option: 'test_suite'

  warnings.warn(msg)

/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown 
distribution option: 'tests_require'

  warnings.warn(msg)

usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]

   or: -c --help [cmd1 cmd2 ...]

   or: -c --help-commands

   or: -c cmd --help



error: invalid command 'egg_info'


Command python setup.py egg_info failed with error code 1 in /home/
reza1/src/cartridge-master




در جمعه 12 ژوئن 2015، ساعت 2:56:22 (UTC+4:30)، Sam Kingston نوشته:

 Please use the master branch of Mezzanine and Cartridge (unreleased as 
 yet):

 $ pip install --upgrade -e git+
 https://github.com/stephenmcd/mezzanine.git#egg=Mezzanine-master
 $ pip install --upgrade -e git+
 https://github.com/stephenmcd/cartridge.git#egg=Cartridge-master

 Also good practice is to install your Python project (and deps) in a 
 virtualenv, instead of system-wide. This way you don't get any dependency 
 clashes with other libraries.

 On Friday, 12 June 2015 05:19:39 UTC+10, سید محمد رضا طباطبائی wrote:

 hi 

 i hava some problem with new version of django for installing cartridge 
 and mezzanine

 like this


 $ python3 manage.py createdb --noinput
 /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: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