Error 500 y debug

9 views
Skip to first unread message

paler

unread,
Jan 9, 2007, 2:59:03 PM1/9/07
to NotiUY
Una de las noticias a las que intenté acceder hoy no se encontraba y
obtuve un error que adjunto debajo. Es un error de django, por lo que
deduzco tres cosas:
1) Hay un error en el manejo de los errores 404 (página no
encontrada).
2) Se intenta mostrar el error 500 cuando ocurre un 404
3) Aunque el notiuy 2 es una beta, habría que quitar la bandera debug.
------------------------------------------------------------------------

Page not found (404)
Request Method: GET
Request URL: http://beta.notiuy.com/500.shtml

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

1. ^ ^$
2. ^ ^popular/(?P<when>[^/]*)/$
3. ^ ^popular/$
4. ^ ^sites/(?P<when>[^/]*)/$
5. ^ ^sites/$
6. ^ ^site/(?P<site>[\w-]+)/(?P<category>[\w-]+)/(?P<when>[^/]*)/$
7. ^
^site/(?P<site>[\w-]+)/(?P<when>(last[^/]+|all|\d\d\d\d-\d\d-\d\d))/$
8. ^ ^site/(?P<site>[\w-]+)/(?P<category>[\w-]+)/$
9. ^ ^site/(?P<site>[\w-]+)/$
10. ^ ^tags/(?P<when>[^/]*)/$
11. ^ ^tags/$
12. ^ ^tag/(?P<tag>[\w-]+)/(?P<when>[^/]*)/$
13. ^ ^tag/(?P<tag>[\w-]+)/$
14. ^ ^user/(?P<user>[\w-]+)/$
15. ^ ^user/(?P<user>[\w-]+)/(?P<fav>[\w-]+)/$
16. ^ ^search/$
17. ^ ^article/(?P<id>\d+)/$
18. ^ ^login/$
19. ^ ^logout/$
20. ^ ^register/$
21. ^ ^profile/$
22. ^ ^addfavorite/$
23. ^ ^about/$
24. ^ ^help/$
25. ^ ^sitemap.xml$
26. ^admin/
27. ^media/(.*)$

The current URL, /500.shtml, 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.

Pablo Hoffman

unread,
Jan 9, 2007, 7:31:00 PM1/9/07
to NotiUY
Correcto paler, todos esos problemas que mencionas fueron debidos a que
habilité la opción DEBUG (para probar una cosa) pero olvidé
deshabilitarla luego.

Ahora ya quedó deshabilitada y no deberían volver a aparecer esos
errores.

Reply all
Reply to author
Forward
0 new messages