Hello, thanks for your answer, indeed there were older versions of 
mezzanine and filebrowser-safe  on the production environment than in the 
development environment!
However, before trying to upgrade the version in production env I shoudl 
prove that the problem is really caused by the too old versions. I heve 
been trying to set up a small mezzanine-server with older versions (see 
attachmet )  

But when I try to start the server I get the error (see more details 
attached): 
    from django.template.utils import InvalidTemplateEngineError
ImportError: No module named utils

Can you help me with a minimun combination of required modules and plugins 
where the problem could be repeated ?
Jaana
torstai 28. lokakuuta 2021 klo 19.57.12 UTC+3 Marcos Sánchez Provencio - 
Meteogrid kirjoitti:

> Hello there
> This commit seems to be relevant:
>
> https://github.com/stephenmcd/filebrowser-safe/commit/d094b8e85fefa9f61b3156530de7892eb5b8a425
> It seems that the version of filebrowser-safe is older in production. I 
> imagine that `pip list` would give you more info (if you can run it on the 
> production server, of course).
>
> On Thursday, 28 October 2021 at 14:34:45 UTC+2 [email protected] 
> wrote:
>
>> Hello, I'm new with mezzanine and I was told to figure out why out 
>> cutomes cannot upload multiple files into media-library.
>>
>> I tried to repeat the problem in test environment and the upload worked 
>> as expected.
>>
>> I'm using django 1.8 with mezzanine 4.2. When inspecting the upload 
>> button in those pages I noticed that the production side didn't have  
>> multiple attribute in the input tag like the development side has (see 
>> attachments).
>> How should I configure the production provide the sama behaviour with the 
>> developemnt ?
>>
>> Br, Jaana 
>>   
>>
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mezzanine-users/162f84d7-fd5e-48e4-adf3-f627dee02f27n%40googlegroups.com.
(python2.7) miettinj@ramen:~/mezzanine4/koe4> python manage.py runserver 0:7072
/srv/work/miettinj/mezzanine4/python2.7/lib/python2.7/site-packages/mezzanine/utils/conf.py:51:
 UserWarning: You haven't defined the ALLOWED_HOSTS settings, which Django 1.5 
requires. Will fall back to the domains configured as sites.
  warn("You haven't defined the ALLOWED_HOSTS settings, which "
/srv/work/miettinj/mezzanine4/python2.7/lib/python2.7/site-packages/mezzanine/utils/conf.py:59:
 UserWarning: TIME_ZONE setting is not set, using closest match: Europe/Helsinki
  warn("TIME_ZONE setting is not set, using closest match: %s" % tz)
Traceback (most recent call last):
  File "manage.py", line 29, in <module>
    execute_from_command_line(sys.argv)
  File 
"/srv/work/miettinj/mezzanine4/python2.7/lib/python2.7/site-packages/django/core/management/__init__.py",
 line 399, in execute_from_command_line
    utility.execute()
  File 
"/srv/work/miettinj/mezzanine4/python2.7/lib/python2.7/site-packages/django/core/management/__init__.py",
 line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/srv/work/miettinj/mezzanine4/python2.7/lib/python2.7/site-packages/django/core/management/__init__.py",
 line 272, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File 
"/srv/work/miettinj/mezzanine4/python2.7/lib/python2.7/site-packages/django/core/management/__init__.py",
 line 75, in load_command_class
    module = import_module('%s.management.commands.%s' % (app_name, name))
  File 
"/srv/work/miettinj/mezzanine4/python2.7/lib/python2.7/site-packages/django/utils/importlib.py",
 line 40, in import_module
    __import__(name)
  File 
"/srv/work/miettinj/mezzanine4/python2.7/lib/python2.7/site-packages/mezzanine/core/management/__init__.py",
 line 16, in <module>
    from mezzanine.utils.tests import copy_test_to_media
  File 
"/srv/work/miettinj/mezzanine4/python2.7/lib/python2.7/site-packages/mezzanine/utils/tests.py",
 line 17, in <module>
    User = get_user_model()
  File 
"/srv/work/miettinj/mezzanine4/python2.7/lib/python2.7/site-packages/django/contrib/auth/__init__.py",
 line 127, in get_user_model
    user_model = get_model(app_label, model_name)
  File 
"/srv/work/miettinj/mezzanine4/python2.7/lib/python2.7/site-packages/django/db/models/loading.py",
 line 271, in get_model
    self._populate()
  File 
"/srv/work/miettinj/mezzanine4/python2.7/lib/python2.7/site-packages/django/db/models/loading.py",
 line 78, in _populate
    self.load_app(app_name)
  File 
"/srv/work/miettinj/mezzanine4/python2.7/lib/python2.7/site-packages/django/db/models/loading.py",
 line 99, in load_app
    models = import_module('%s.models' % app_name)
  File 
"/srv/work/miettinj/mezzanine4/python2.7/lib/python2.7/site-packages/django/utils/importlib.py",
 line 40, in import_module
    __import__(name)
  File 
"/srv/work/miettinj/mezzanine4/python2.7/lib/python2.7/site-packages/compressor/models.py",
 line 1, in <module>
    from compressor.conf import CompressorConf  # noqa
  File 
"/srv/work/miettinj/mezzanine4/python2.7/lib/python2.7/site-packages/compressor/conf.py",
 line 6, in <module>
    from django.template.utils import InvalidTemplateEngineError
ImportError: No module named utils
Django==1.6.5
Mezzanine==3.1.5
Pillow
bleach
distribute
django-appconf
django-compressor
filebrowser-safe==0.3.5
future==0.9.0
grappelli-safe
html5lib
oauthlib
pytz
requests
requests-oauthlib
six
tzlocal==1.0
django-contrib-comments==1.6.1

Reply via email to