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 a
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 vi
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')),
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
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 re
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@google
6 matches
Mail list logo