jazzband / django-newsletter

An email newsletter application for the Django web application framework, including an extended admin interface, web (un)subscription, dynamic e-mail templates, an archive and HTML email support.
GNU Affero General Public License v3.0
852 stars 206 forks source link

Django 4.1 support? #383

Open jdbit opened 2 years ago

jdbit commented 2 years ago

Hi, The latest version of django-newsletter doesn't work with Django 4.1. I got this error:

ImportError: cannot import name 'ugettext_lazy' from 'django.utils.translation'

I fixed it by replacing deprecated ugettext_lazy to gettext_lazy, but got another error which I don't know how to fix:

ImportError: Module "compressor.finders" does not define a "CompressorFinder" attribute/class

nasir733 commented 2 years ago

Any Update on this ?

gabn88 commented 2 years ago

@Bashar @jezdez Thank you for your work on this package. Would it be an idea to create a new release on PyPi? That would also close this issue.

MiKatre commented 1 year ago

The workaround for now is to install it directly from GitHub. It seems to works with Django 4.1

If using pipenv:

# Pipfile
django = "~=4.1"
django-newsletter = {git = "https://github.com/jazzband/django-newsletter.git", ref = "master"}
...
jonnyhoff commented 1 year ago

Any progress on this?

jonnyhoff commented 1 year ago

When using the Git Repo, everything works but not when installing the PyPi Package.

poetry add git+https://github.com/jazzband/django-newsletter.git
thismatters commented 1 year ago

Throwing it out there that I've just released a package to replace this one called django-mailinglist; it is fully django 4+ compliant!

wildernessfamily commented 11 months ago

Throwing it out there that I've just released a package to replace this one called django-mailinglist; it is fully django 4+ compliant!

Developing a new Django site, going to give this a try. Thanks

CARocha commented 7 months ago

Wow, this error not resolves! Maybe @jazzband-bot need change the responsibility in this project not?

newearthmartin commented 4 months ago

I created another issue for adding testing and support for Python 3.11 and 3.12 and Django 4 and 5 https://github.com/jazzband/django-newsletter/issues/392 and a PR to remove a deprecation warning in Python 3.12 https://github.com/jazzband/django-newsletter/pull/391

Hope this helps stir the waters and get some attention on this!