specialunderwear / django-easymode

Quickly build backends for flash/flex websites with Django.
GNU General Public License v3.0
35 stars 20 forks source link

from Django.utils import tzinfo #28

Open fabiom91 opened 4 years ago

fabiom91 commented 4 years ago

Hi I'm on Django 1.11.29 and using python 2.7

I have a dockerised application and I tried to install almost all version of your package unsuccessfully receiving always the same error in the description.

From a look at the files in your repo I can see the error have no reason to exists because it has been solved already. Nevertheless, it seems like pip install is not updated so before anyone else run into the same time wasting issue, here is how to solve it:

in your requirements.txt use this:

git+https://github.com/specialunderwear/django-easymode.git@master

instead of Django-easymode==1.4b5

specialunderwear commented 4 years ago

Ok thnx for the help I will update it, would you also need a release or not?

specialunderwear commented 4 years ago

Sorry I didn’t get the full message in my email. Do I need to make a new release for you? I’m happy to help.

fabiom91 commented 4 years ago

Thank you for the prompt answer, no need for new release I just wanted to report that the version installed by pip is not the last one despite saying version 1.4b5 To make it work I'll had to install it through GitHub. There may be a problem in your pip version.

fabiom91 commented 4 years ago

In particular, in the pip version, django-easymode/easymode/i18n/gettext.py is trying to import tzinfo from django.utils only instead of from django.utils.timezone import tzinfo as in the last version available on GitHub.