Thursday, September 1, 2011

Re: Unable to have a template NOT show up

The other issue that I spoke about was this:

Page not found (404)

Request Method:GET
Request URL:http://localhost:8000/polls/1/

Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order:

  1. ^polls/ ^polls/$
  2. ^polls/ ^polls/(?P<poll_id>\d+)/$
  3. ^polls/ ^polls/(?P<poll_id>\d+)/results/$
  4. ^polls/ ^polls/(?P<poll_id>\d+)/vote/$
  5. ^polls/ ^admin/
  6. ^admin/

The current URL, polls/1/, didn't match any of these.

You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.


Is this the issue of having something match before another url?

I'll try to get my stuff zipped up and host it somewhere if that's not enough information.

On Thu, Sep 1, 2011 at 2:24 AM, kenneth gonsalves <lawgon@thenilgiris.com> wrote:
On Wed, 2011-08-31 at 12:05 -0700, Yves S. Garret wrote:
> Caught ViewDoesNotExist while rendering: Could not import polls.view.
> Error was: No module named view

should it not be views?
--
regards
Kenneth Gonsalves

--
You received this message because you are subscribed to the Google Groups "Django users" group.
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.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
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