i want to design url pattern
url(r'^yapilacaklar/ ','todo.views.todo_list', name='todo_list'),
url(r'^yapilacaklar/(?P<id>[0-9]+){0,1}?/(?P<process>[A-Za-z]+)$','todo.views.todo_list', name='todo_list'),
but i have error that statement.
yapilacaklar/
yapilacaklar/1
yapilacaklar/1/sil
yapilacaklar/5/guncelle
how can it above (url pattern)? please help me
ERROR PAGE
Using the URLconf defined in guide.urls, Django tried these URL patterns, in this order:
^$ [name='index']
^yapilacaklar/(?P<id>[0-9]+){0,1}?\/{0,1}(?P<process>[A-Za-z]+)$ [name='todo_list']
^admin/
^$ [name='index']
^yapilacaklar/(?P<id>[0-9]+){0,1}?\/{0,1}(?P<process>[A-Za-z]+)$ [name='todo_list']
^admin/
MY URL PATTERN
urlpatterns = patterns('',
url(r'^$','todo.views.login_user', name='index'),
url(r'^$','todo.views.login_user', name='index'),
url(r'^yapilacaklar/(?P<id>[0-9]+){0,1}?\/{0,1}(?P<process>[A-Za-z]+)$','todo.views.todo_list', name='todo_list')
url(r'^admin/', include(admin.site.urls)),
)
thanks you very much...
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/Fjbf45f1-NoJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment