Discussion:
from django.urls import include , path ImportError: cannot import name include
t***@gmail.com
6 years ago
Permalink
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+***@googlegroups.com.
To post to this group, send email to django-***@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.
C. Kirby
6 years ago
Permalink
from django.conf.urls import include


you are missing conf
Post by t***@gmail.com
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+***@googlegroups.com.
To post to this group, send email to django-***@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.
Dheeraj Kumar
6 years ago
Permalink
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.
...
--
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 post to this group, send email to django-***@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.
Harryxon Ndegwa
6 years ago
Permalink
use django.urls import path instead to 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 post to this group, send email to django-***@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.
Dheeraj Kumar
6 years ago
Permalink
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'),
]
...
--
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 post to this group, send email to django-***@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.
رهام صادقی
6 years ago
Permalink
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‬‏ <‪***@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.
To post to this group, send email to django-***@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/CAJjGCENqsLzzhgZL1bCCV6BzF877RA_jPu_0xzc2osZYtXzDRA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...