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.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 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/2a7fc8e5-cd5a-42e4-bb38-9fb816e0463d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to