# Django with python 3.12 ImportError

**URL:** <https://forum.djangoproject.com/t/django-with-python-3-12-importerror/31343>\
**Category:** Mystery Errors\
**Created:** [May 20, 2024, 5:50pm UTC](https://forum.djangoproject.com/t/django-with-python-3-12-importerror/31343 "2024-05-20T17:50:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maplephp](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/maplephp/32/21431_2.png) [@maplephp](https://forum.djangoproject.com/u/maplephp)\
**Post date:** [May 20, 2024, 5:50pm UTC](https://forum.djangoproject.com/t/django-with-python-3-12-importerror/31343/1 "2024-05-20T17:50:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![leandrodesouzadev](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/leandrodesouzadev/32/8981_2.png) [@leandrodesouzadev](https://forum.djangoproject.com/u/leandrodesouzadev)\
**Post date:** [May 20, 2024, 6:45pm UTC](https://forum.djangoproject.com/t/django-with-python-3-12-importerror/31343/2 "2024-05-20T18:45:54Z")

</div>

How’re trying to import the `url` name?

---

<div class="post-metadata">

**Author:** ![maplephp](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/maplephp/32/21431_2.png) [@maplephp](https://forum.djangoproject.com/u/maplephp)\
**Post date:** [June 25, 2024, 8:39am UTC](https://forum.djangoproject.com/t/django-with-python-3-12-importerror/31343/3 "2024-06-25T08:39:11Z")

</div>

I don’t import it but the error comes from the Django itself importing it, the whole project just used `from django.urls import path`
