Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

url() removed in django 4 #5

Open
slavkoja opened this issue Dec 14, 2021 · 0 comments
Open

url() removed in django 4 #5

slavkoja opened this issue Dec 14, 2021 · 0 comments

Comments

@slavkoja
Copy link

I am totally unexperienced with django, but i decided to try your project, as it seems as interested. But initial testing fails with:

...
  File "tmp/reports/reports/urls.py", line 19, in <module>
    from dmarc import urls as dmarc_urls
  File ".venv/dmarc/lib/python3.9/site-packages/dmarc/urls.py", line 10, in <module>
    from django.conf.urls import url
ImportError: cannot import name 'url' from 'django.conf.urls'
    (.venv/dmarc/lib/python3.9/site-packages/django/conf/urls/__init__.py)

Quick search points me to https://stackoverflow.com/a/70319607 where is noted, that url() was deprecated in 3.X and removed in 4.

Your setup.py doesn't limits django to any version in its requires field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant