Re: Django URL routing

2020-05-07 Thread Ronald Kamulegeya
Hi Roseman, Your comment pointed me to the right direction. I have finally cracked the mystery! Thanks so much! On Thursday, May 7, 2020 at 5:17:22 PM UTC+3, Ronald Kamulegeya wrote: > > Here is my attempt at creating unique path: > Still i get page not found error. The index page is not

Re: Django URL routing

2020-05-07 Thread Ronald Kamulegeya
Here is my attempt at creating unique path: Still i get page not found error. The index page is not opening too. urlpatterns = [ path("tenants/", views.TenantsListView.as_view(), name="index"), path("tenants/details",views.TenantDetailView.as_view(),name="detail"),

Re: Django URL routing

2020-05-07 Thread Ronald Kamulegeya
Hello Roseman, Please suggest how i can code the different Urls. On Thursday, May 7, 2020 at 3:24:28 PM UTC+3, Daniel Roseman wrote: > > You have multiple URLs that are the same path. That can't work. One URL > maps to one view. > -- > DR. > > On Thursday, 7 May 2020 11:40:09 UTC+1, Ronald

Re: Django URL routing

2020-05-07 Thread LGBS fine soul coders
Yaaahhh On Thu, 7 May 2020, 15:24 Daniel Roseman, wrote: > You have multiple URLs that are the same path. That can't work. One URL > maps to one view. > -- > DR. > > On Thursday, 7 May 2020 11:40:09 UTC+1, Ronald Kamulegeya wrote: >> >> I am learning Django and progressing well but i am stuck

Re: Django URL routing

2020-05-07 Thread Daniel Roseman
You have multiple URLs that are the same path. That can't work. One URL maps to one view. -- DR. On Thursday, 7 May 2020 11:40:09 UTC+1, Ronald Kamulegeya wrote: > > I am learning Django and progressing well but i am stuck on how to > configure the different urls to view functions. > I have

Re: Django URL routing

2020-05-07 Thread ROBSON SOUZA
You are missing parenteses right after as_view in urls.py Enviado do meu iPhone Em 7 de mai de 2020, à(s) 03:22, Ronald Kamulegeya escreveu: > I am learning Django and progressing well but i am stuck on how to configure > the different urls to view functions. > I have gone through