On Jul 7, 10:48 pm, Bradley Hintze <bradle...@aggiemail.usu.edu> wrote: > Hi all, > > I am trying to followhttp://docs.djangoproject.com/en/1.2/topics/forms/ > > I put contact.html in myTemplates. > > But when I try to bring up '../contact' i get a 404 error. Here are the > details. > > Using the URLconf defined in testing123.urls, Django tried these URL > patterns, in this order: > ^testForms/ ^$ > ^testForms/ ^/contact/$ > The current URL, testForms/contact, didn't match any of these. > > It should match the second one right?? > > Here is my url.py > > from django.conf.urls.defaults import * > > urlpatterns = patterns('testing123.testForms.views', > (r'^$', 'index'), > (r'^/contact/$', 'contact'), > ) > > I hope thats enough info. > > Any ideaaas? > Thanks, > Bradley >
You don't want the leading slash. (r'^contact/$', 'contact'), -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.