I agree that those look odd. As far as the end-user is concerned, though, 
their project's urls module is the root. Does accepting (and removing) a 
leading slash have a negative side-effect that I'm not aware of? Enforcing 
its absence seems to expose an implementation detail.

On Tuesday, 4 October 2016 21:02:00 UTC+1, Tom Christie wrote:
>
> Yup, good points there. I wasn't really considering `include` at that 
> point.
>
> Definitely some awkwardnesses that need thinking about there.
>
> urlpatterns = [
>     path('', homepage),
>     path('users/', users_list)
> ]
>
> Looks very odd to me, since those are not actually valid URL paths. ('/' 
> and '/users/' are the actual URL paths)
>
> Anyways, something to mull over. That and the import names are probably 
> the two areas that'll need resolutions.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/46187e25-aa56-426c-82b7-554da6052595%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to