Re: [Django] #34471: Cannot import name 'url' from 'django.conf.urls'

2 views
Skip to first unread message

Django

unread,
Apr 7, 2023, 2:47:31 AM4/7/23
to django-...@googlegroups.com
#34471: Cannot import name 'url' from 'django.conf.urls'
-------------------------------+--------------------------------------
Reporter: VJ Magar | Owner: VJ Magar
Type: Bug | Status: closed
Component: Uncategorized | Version: 4.2
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------------------------

Comment (by VJ Magar):

Replying to [comment:2 Mariusz Felisiak]:
> The `django.conf.urls.url` alias was deprecated in Django 3.1 and
removed in Django 4.0.

Hey Mariusz Felisiak,

I knew that `django.conf.urls.url` was removed in Django 4.0. However, I
was getting this error when setup the new django project.
It turns out that I had accidentally used older version of Django (some
old django from global space).

Thanks for quickly marking this issue as invalid. It saved few hours of
mine

--
Ticket URL: <https://code.djangoproject.com/ticket/34471#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Reply all
Reply to author
Forward
0 new messages