when application urs.py decribed as below

urlpatterns = [
    url('card', views.card),
    url('welcome', views.welcome),
    url('cards', views.cards),
]

Django picks up "url('card', views.card)" when I enter 
"http://localhost:8000/firstApp/cards/"; and
"http://localhost:8000/firstApp/card/";.

But when I changed application urs.py as below
urlpatterns = [
    url('cards', views.card),
    url('welcome', views.welcome),
    url('card', views.cards),
]
Django picks up "url('cards', views.card)" when I enter 
"http://localhost:8000/firstApp/cards/"; and
Django picks up "url('card', views.card)" when I enter 
"http://localhost:8000/firstApp/card/";. This
action is what Iexpected.

Is this a specification of Django or bug?

-- 
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/1531e6ea-bc9b-4575-a817-f8318b6e5b58%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to