Re: Right method for url mapping

2019-05-26 Thread Saeed Pooladzadeh
e of my app it works with >> just second one!! >> >> در یکشنبه 26 مهٔ 2019، ساعت 3:49:59 (UTC+4:30)، Yoo نوشته: >>> >>> First one. Usually I'd have it be views.index. Otherwise, the first one >>> is perfectly fine. Need explanation? >>

Re: Right method for url mapping

2019-05-26 Thread avi gehlot
you can write only path(' ', views.show, name='index') On Sunday, May 26, 2019 at 4:44:18 AM UTC+5:30, Saeed Pooladzadeh wrote: > > Hello > > Wich of them is the right method for url mapping: > > path('', views.show, name='index'), > > or > > path('index', views

Re: Right method for url mapping

2019-05-26 Thread Yoo
;> >> On Saturday, May 25, 2019 at 7:14:18 PM UTC-4, Saeed Pooladzadeh wrote: >>> >>> Hello >>> >>> Wich of them is the right method for url mapping: >>> >>> path('', views.show, name='index'), >>> >>> or >>&

Re: Right method for url mapping

2019-05-26 Thread Saeed Pooladzadeh
y, May 25, 2019 at 7:14:18 PM UTC-4, Saeed Pooladzadeh wrote: >> >> Hello >> >> Wich of them is the right method for url mapping: >> >> path('', views.show, name='index'), >> >> or >> >> path('index', views.show), >> >&

Re: Right method for url mapping

2019-05-25 Thread Yoo
First one. Usually I'd have it be views.index. Otherwise, the first one is perfectly fine. Need explanation? On Saturday, May 25, 2019 at 7:14:18 PM UTC-4, Saeed Pooladzadeh wrote: > > Hello > > Wich of them is the right method for url mapping: > > path('', views

Right method for url mapping

2019-05-25 Thread Saeed Pooladzadeh
Hello Wich of them is the right method for url mapping: path('', views.show, name='index'), or path('index', views.show), Regards, Saeed -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop