etianen / django-watson

Full-text multi-table search application for Django. Easy to install and use, with good performance.
BSD 3-Clause "New" or "Revised" License
1.2k stars 129 forks source link

Django 3.0 Support #263

Closed ephes closed 4 years ago

ephes commented 4 years ago

Hi *,

thanks for providing this really useful fulltext search app :).

Since django 3.0 was released yesterday I tried to run it with django-watson but got this traceback:

  File "/Users/jochen/.pyenv/versions/3.8.0/envs/homepage/lib/python3.8/site-packages/watson/models.py", line 9, in <module>
    from django.utils.encoding import python_2_unicode_compatible, force_text
ImportError: cannot import name 'python_2_unicode_compatible' from 'django.utils.encoding' (/Users/jochen/.pyenv/versions/3.8.0/envs/homepage/lib/python3.8/site-packages/django/utils/encoding.py)
/Users/jochen/.pyenv/versions/3.8.0/envs/homepage/lib/python3.8/site-packages/django/core/servers/basehttp.py changed, reloading.

Ah ok, those compatibility apis have been removed in django 3.0. Created a naive pull request to fix it, let's see how much travis will complain :).

best regards, jochen