url(r'^$', views.index, name='index'),
url(r'^(?P<pluginTitle>\D+)/$', views.detail, name='detail'),
Page not found (404)
Request Method: GET Request URL: http://127.0.0.1:8000/plugin/cbs/ Using the URLconf defined in
urlconf
, Django tried these URL patterns, in this order:
The current URL,plugin/cbs/
, didn't match any of these.
I am new to using Django and I can get one urls to work, but I cannot get another. I am running Django 1.5This url works.url(r'^$', views.index, name='index'),But if I try to follow this one.url(r'^(?P<pluginTitle>\D+)/$', views.detail, name='detail'),
I get the following error.when I try http://127.0.0.1:8000/plugin/title where title is a unique key in the database.Page not found (404)
Request Method: GET Request URL: http://127.0.0.1:8000/plugin/cbs/ Using the URLconf defined in
urlconf
, Django tried these URL patterns, in this order:
- ^__debug__/m/(.*)$
- ^__debug__/sql_select/$ [name='sql_select']
- ^__debug__/sql_explain/$ [name='sql_explain']
- ^__debug__/sql_profile/$ [name='sql_profile']
- ^__debug__/template_source/$ [name='template_source']
- ^admin/doc/
- ^admin/
- ^plugin/ ^(?P<pluginTitle>\d+)/$ [name='detail']
- ^plugin/ ^$ [name='index']
The current URL,plugin/cbs/
, didn't match any of these.Any and all help or guidance would be greatly appreciated.
--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3d625e8e-ff23-4411-a0e2-503b8496c286%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFHbX1KAh%3DCyc_DApJ48R-Yvsx-grCrQY%2BYQ53Caxt4Krf%3DxmA%40mail.gmail.com.