Skip to content

Django 4.2 Support #136

Description

@jseadragon

Recently I tried to use it with Django 4.2 (current LTS) and ran into this error:

  File "/Users/username/.venvs/work/lib/python3.11/site-packages/restless/dj.py", line 4, in <module>
    from django.conf.urls import url
ImportError: cannot import name 'url' from 'django.conf.urls' (/Users/username/.venvs/work/lib/python3.11/site-packages/django/conf/urls/__init__.py)

See: https://docs.djangoproject.com/en/dev/internals/deprecation/#deprecation-removed-in-4-0

  • django.conf.urls.url() will be removed.

It seems the url function was deprecated in Django 3.x and is no longer supported in 4.x. Thus, we will have to update this. https://stackoverflow.com/a/70319607

However, it seems this library is not maintained (Re: #135), so even if I submitted a PR I am not sure it would do anyone any good. Hence, opening this issue for others to stumble upon when they inevitably upgrade.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions