Hi,
note that path is only works on django with version > 2.0
for more information about path check following link:
https://docs.djangoproject.com/en/2.1/ref/urls/

‫‪Dheeraj Kumar‬‏ <‪[email protected]‬‏> در تاریخ چهارشنبه ۵ دسامبر ۲۰۱۸
ساعت ۱۱:۳۳ نوشت:‬

> It won't work.
> now i changed here is and working fine..
>
> from django.contrib import admin
> from django.conf.urls import url, include
>
> urlpatterns = [
>     url (r'^boadts/', include ('boadts.urls')),
>     url (r'^admin/',admin.site.urls),
> ]
>
> and in apps
>
> from django.conf.urls import url
> from .import views
>
> urlpatterns = [
>     url (r'^$', views.home , name = 'home'),
> ]
>
>
> On Tue, 4 Dec 2018 at 22:01, Harryxon Ndegwa <[email protected]>
> wrote:
>
>> use  django.urls import path instead to import path
>>
>> #%£&
>>
>> On Tue, 4 Dec 2018 7:06 pm Dheeraj Kumar <[email protected] wrote:
>>
>>> thanks to respond me but still having an issue.
>>>
>>> from django.contrib import admin
>>> from django.conf.urls import include, path
>>>
>>> urlpatterns = [
>>>     path('boadts/', include ('boadts.urls')),
>>>     path('admin/',admin.site.urls),
>>> ]
>>>  File "/home/myproject/myproject/myproject/urls.py", line 2, in <module>
>>>     from django.conf.urls import include, path
>>> ImportError: cannot import name path
>>>
>>> please tell.
>>>
>>> On Tue, 4 Dec 2018 at 19:40, C. Kirby <[email protected]> wrote:
>>>
>>>> from django.conf.urls import include
>>>>
>>>>
>>>> you are missing conf
>>>>
>>>> On Tuesday, December 4, 2018 at 8:21:39 AM UTC-5, [email protected]
>>>> wrote:
>>>>>
>>>>> plz advise...
>>>>>
>>>> --
>>>> 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 [email protected].
>>>> To post to this group, send email to [email protected].
>>>> Visit this group at https://groups.google.com/group/django-users.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/f2a4a58b-2c9b-4710-8801-e24e9fdf1b45%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/f2a4a58b-2c9b-4710-8801-e24e9fdf1b45%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>> --
>>> 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 [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CANwUEV8cExZZKFPJX7VLOwAxn5COVa2P6v4qjRpqY%3Di2e%3DCy-A%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CANwUEV8cExZZKFPJX7VLOwAxn5COVa2P6v4qjRpqY%3Di2e%3DCy-A%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> 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 [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAPqDb9NwUqQgnUVyovqhMu%3DB7gX9P0vhzhnakOkQgu0D6B%2Bz3Q%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAPqDb9NwUqQgnUVyovqhMu%3DB7gX9P0vhzhnakOkQgu0D6B%2Bz3Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANwUEV-eBdB80DiZ16QSSU69nsUHqMj7C%3Drr1eBp0u4%3DGpgOdg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CANwUEV-eBdB80DiZ16QSSU69nsUHqMj7C%3Drr1eBp0u4%3DGpgOdg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJjGCENqsLzzhgZL1bCCV6BzF877RA_jPu_0xzc2osZYtXzDRA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to