etesync / server

The Etebase server (so you can run your own)
https://www.etesync.com
GNU Affero General Public License v3.0
1.54k stars 75 forks source link

Django 4: ImportError: cannot import name 'url' from 'django.conf.urls' #119

Closed CaseOf closed 2 years ago

CaseOf commented 2 years ago

Hello, I’ve updated my system and it updated Django to version 4 some time ago. I did not restart etebase since now and then I’m facing an issue due to Django that has removed django.conf.urls. The error message below:

  File "/usr/lib/etebase-server/etebase_server/urls.py", line 2, in <module>
    from django.conf.urls import include, url
ImportError: cannot import name 'url' from 'django.conf.urls' (/usr/lib/python3.9/site-packages/django/conf/urls/__init_
_.py)
tasn commented 2 years ago

😢

Honestly, it's so much easier just running in a virtual env/docker. It's really hard to maintain compatibility across so many different versions of libs.

I'm not sure what's the right approach.

CaseOf commented 2 years ago

I understand your point of view. On my situation, I am able to downgrade to Django 3. I already did. But we will definitely have to find a way when Django 3 will reach EOL.

tasn commented 2 years ago

Oh, we'll definitely update before 3 reaches EOL! I just meant that taking care of supporting both so quickly is hard. :)