[Django] #35468: Django with python 3.12 ImportError: cannot import name 'url' from 'django.conf.urls' (/usr/local/lib/python3.12/site-packages/django/conf/urls/__init__.py). Did you mean: 'urls'?

9 views
Skip to first unread message

Django

unread,
May 20, 2024, 12:45:32 PM5/20/24
to django-...@googlegroups.com
#35468: Django with python 3.12 ImportError: cannot import name 'url' from
'django.conf.urls' (/usr/local/lib/python3.12/site-
packages/django/conf/urls/__init__.py). Did you mean: 'urls'?
---------------------------------------+------------------------
Reporter: xbian | Owner: nobody
Type: Bug | Status: new
Component: Core (URLs) | Version: 5.0
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
---------------------------------------+------------------------
ImportError: cannot import name 'url' from 'django.conf.urls'
(/usr/local/lib/python3.12/site-packages/django/conf/urls/__init__.py).
Did you mean: 'urls'?

I tried latest v4 and latest v5 both had same errors.
--
Ticket URL: <https://code.djangoproject.com/ticket/35468>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
May 20, 2024, 1:18:02 PM5/20/24
to django-...@googlegroups.com
#35468: Django with python 3.12 ImportError: cannot import name 'url' from
'django.conf.urls' (/usr/local/lib/python3.12/site-
packages/django/conf/urls/__init__.py). Did you mean: 'urls'?
-----------------------------+--------------------------------------
Reporter: xbian | Owner: nobody
Type: Bug | Status: closed
Component: Core (URLs) | Version: 5.0
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+--------------------------------------
Changes (by Natalia Bidart):

* resolution: => invalid
* status: new => closed

Comment:

Hello,

This report seems better suited to be a support request. The best place to
get answers to your issue is using any of the user support channels from
[https://docs.djangoproject.com/en/dev/faq/help/#how-do-i-do-x-why-
doesn-t-y-work-where-can-i-go-to-get-help this link].

Please be sure to read all the release notes of the Django version that
you are using or migrating to, and also please read any of the multiple
results from search engines about the reported error, for example
[https://stackoverflow.com/questions/70319606/importerror-cannot-import-
name-url-from-django-conf-urls-after-upgrading-to this Stackoverflow
post].
--
Ticket URL: <https://code.djangoproject.com/ticket/35468#comment:1>
Reply all
Reply to author
Forward
0 new messages