wagtail / wagtailtrans

A Wagtail add-on for supporting multilingual sites
http://wagtailtrans.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
104 stars 60 forks source link

Django3 breaks the package with depricated imports. #173

Closed WalterMccan closed 4 years ago

WalterMccan commented 4 years ago

Issue summary

After upgrade to Django 3 the package no longer works.

  File "..../env/lib/python3.7/site-packages/wagtailtrans/wagtail_hooks.py", line 2, in <module>
    from django.contrib.staticfiles.templatetags.staticfiles import static
ModuleNotFoundError: No module named 'django.contrib.staticfiles.templatetags'

How to reproduce?

pip install django==3.0.2

Technical details

Python3.7, wagtail 2.7, wagtailtrans==2.0.6

jjanssen commented 4 years ago

Hi @WalterMccan

At the moment the latest official Wagtail release (2.7) isn't compatible with Django 3.0 just yet. Django 3.0 support will be available in the forthcoming Wagtail release (2.8) which is scheduled for February. In the meantime will keep an eye on have Wagtailtrans compatible with Wagtail 2.8 (and thus Django 3) on short notice.

jjanssen commented 4 years ago

Today Wagtail 2.8 and Wagtailtrans 2.1 got released. Which now officially supports Django 3.0