(2018-01-08, 17:05)Merlijn Wissink Wrote:(2018-01-08, 14:36)Willy Tschager Wrote: Would it be possible to add a "Sorry, set not in database" along with a back button instead of:
in your Django settings file. Change that toCode:Page not found (404) Request Method: GET Request URL: http://omr.ldraw.org/set/892-1/ Raised by: omr.views.set_page Set not found You're seeing this error because you have [code]DEBUG = True
, and Django will display a standard 404 page.Code:False
[/code]
when a set couldn't be found?
Thx, w.
Well, the problem isn't that the fact that the 404 page is missing, because there has been a custom 404 page since the beginning. The problem is that one way or another, debug isn't turned off anymore (which it definitely should on production cause it shows A LOT of data as you can see when you try to look at a file that doesn't exist...) and thus it doesn't use the 'nice' 404 page and logic.
Ahum, Orion, could you also turn of debug please? Thanks!
Yes. I plan on updating the OMR tonight (Pacific time).
