cannot import path in urls

19 views
Skip to first unread message

MEGA NATHAN

unread,
Oct 3, 2019, 12:32:00 AM10/3/19
to Django users
Hi.


i'm meganathan beginer for django ....

urls cannot import for path . how to reslove ....
template1.PNG
template2.PNG
template3.PNG
template4.PNG

Suraj Thapa FC

unread,
Oct 3, 2019, 12:51:36 AM10/3/19
to django...@googlegroups.com
In urls.py
Write 
from django.urls import path

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a0c82af4-da14-49e4-a0af-eff26f47afbd%40googlegroups.com.

Taylor Hughes-Scott

unread,
Oct 3, 2019, 12:54:50 AM10/3/19
to django...@googlegroups.com
Hi, 

It looks like you aren't importing path from the right location in your urls.py file, try the following import to see if that resolves your issue. 

from django.urls import path

Regards, 

--

Sarvesh singh

unread,
Oct 3, 2019, 1:02:18 AM10/3/19
to django...@googlegroups.com
In urls.py file ..
First import- from django.urls import path 
Than use it.
..
In django 2.2 

--

MEGA NATHAN

unread,
Oct 3, 2019, 1:36:56 AM10/3/19
to django...@googlegroups.com
Hi.
In which  file i rewrite ....app/urls are main file url i write.......





Regards
Meganathan G



Taylor Hughes-Scott

unread,
Oct 3, 2019, 2:23:39 AM10/3/19
to django...@googlegroups.com
Hi,

You will need to make the change in both urls.py files that you have created. 

Regards, 

On Thu., 3 Oct. 2019, 3:36 pm MEGA NATHAN, <cloudna...@gmail.com> wrote:
Hi.
In which  file i rewrite ....app/urls are main file url i write.......





Regards
Meganathan G



On Thu, Oct 3, 2019 at 10:21 AM Suraj Thapa FC <surajt...@gmail.com> wrote:
In urls.py
Write 
from django.urls import path

On Thu, 3 Oct, 2019, 10:02 AM MEGA NATHAN, <cloudna...@gmail.com> wrote:
Hi.


i'm meganathan beginer for django ....

urls cannot import for path . how to reslove ....

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a0c82af4-da14-49e4-a0af-eff26f47afbd%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPjsHcEv9-av30MrCetr0FxAHHEpjHM_0jiava_PP6XdKQWLwg%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages