Re: from django.urls import include , path ImportError: cannot import name include

2018-12-05 Thread رهام صادقی
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‬‏ <‪talk...@gmail.com‬‏> در تاریخ چهارشنبه ۵ دسامبر ۲۰۱۸
ساعت ۱۱:۳۳ نوشت:‬

> 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 
> wrote:
>
>> use  django.urls import path instead to import path
>>
>> #%£&
>>
>> On Tue, 4 Dec 2018 7:06 pm Dheeraj Kumar >
>>> 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 
>>> from django.conf.urls import include, path
>>> ImportError: cannot import name path
>>>
>>> please tell.
>>>
>>> On Tue, 4 Dec 2018 at 19:40, C. Kirby  wrote:
>>>
 from django.conf.urls import include


 you are missing conf

 On Tuesday, December 4, 2018 at 8:21:39 AM UTC-5, tal...@gmail.com
 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 django-users+unsubscr...@googlegroups.com.
 To post to this group, send email to django-users@googlegroups.com.
 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
 
 .
 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 django-users+unsubscr...@googlegroups.com.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> 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
>>> 
>>> .
>>> 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 django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> 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
>> 
>> .
>> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> 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
> 
> .
> 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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users

Re: from django.urls import include , path ImportError: cannot import name include

2018-12-05 Thread Dheeraj Kumar
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 
wrote:

> use  django.urls import path instead to import path
>
> #%£&
>
> On Tue, 4 Dec 2018 7:06 pm Dheeraj Kumar 
>> 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 
>> from django.conf.urls import include, path
>> ImportError: cannot import name path
>>
>> please tell.
>>
>> On Tue, 4 Dec 2018 at 19:40, C. Kirby  wrote:
>>
>>> from django.conf.urls import include
>>>
>>>
>>> you are missing conf
>>>
>>> On Tuesday, December 4, 2018 at 8:21:39 AM UTC-5, tal...@gmail.com
>>> 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 django-users+unsubscr...@googlegroups.com.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> 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
>>> 
>>> .
>>> 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 django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> 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
>> 
>> .
>> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> 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
> 
> .
> 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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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.
For more options, visit https://groups.google.com/d/optout.


Re: from django.urls import include , path ImportError: cannot import name include

2018-12-04 Thread Harryxon Ndegwa
use  django.urls import path instead to import path

#%£&

On Tue, 4 Dec 2018 7:06 pm Dheeraj Kumar  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 
> from django.conf.urls import include, path
> ImportError: cannot import name path
>
> please tell.
>
> On Tue, 4 Dec 2018 at 19:40, C. Kirby  wrote:
>
>> from django.conf.urls import include
>>
>>
>> you are missing conf
>>
>> On Tuesday, December 4, 2018 at 8:21:39 AM UTC-5, tal...@gmail.com 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 django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> 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
>> 
>> .
>> 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> 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
> 
> .
> 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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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.
For more options, visit https://groups.google.com/d/optout.


Re: from django.urls import include , path ImportError: cannot import name include

2018-12-04 Thread Dheeraj Kumar
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 
from django.conf.urls import include, path
ImportError: cannot import name path

please tell.

On Tue, 4 Dec 2018 at 19:40, C. Kirby  wrote:

> from django.conf.urls import include
>
>
> you are missing conf
>
> On Tuesday, December 4, 2018 at 8:21:39 AM UTC-5, tal...@gmail.com 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 django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> 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
> 
> .
> 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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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.
For more options, visit https://groups.google.com/d/optout.


Re: from django.urls import include , path ImportError: cannot import name include

2018-12-04 Thread C. Kirby
from django.conf.urls import include


you are missing conf

On Tuesday, December 4, 2018 at 8:21:39 AM UTC-5, tal...@gmail.com 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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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.
For more options, visit https://groups.google.com/d/optout.


from django.urls import include , path ImportError: cannot import name include

2018-12-04 Thread talkdkg
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/21a72ece-03a9-49a7-8d12-ec48994f7352%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.