[Answer]-DoesNotExist at /admin

1👍

I found the problem.

You are trying to get localhost:8000/admin without the slash at the end, and there is a URL in urls.py that matches that:

url(r'^(?P<quiz_name>[\w-]+)$',
    'simulado.views.quiz_take'),  #  quiz

The exception is raised in that view, it has nothing to do with the admin. Fix your URLs and that’s all.

Leave a comment