-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Prabhu, Let's establish the reason the 404.html doesn't show on a supposed 404 error; that is because every single request on the output you posted a little while ago from the server is responded with a 500 error. Something is fouled up with the views, or somewhere in the server process. I'll look through and see if I can spot anything. Good luck! Luke luke.seelenbin...@gmail.com "I [may] disapprove of what you say, but I will defend to the death your right to say it." -- Voltaire prabhu S wrote: > Hi Luke, > > Thanks for your email. The particular source is already fine with > no /. I also tried adding slash assuming you swapped the particular > line in your email. > > Can you give another shot and let me know if you can spot something? > > Regards, > Prabhu > > On Jul 30, 6:46 pm, Luke Seelenbinder <luke.seelenbin...@gmail.com> > wrote: > Hey, I think I located your problem. > > In file invoicy / guidy / urls.py > > You should change the first url pattern to read: > url(r'^/$', 'guidy_default', name='guidy-default'), > instead of: > url(r'^$', 'guidy_default', name='guidy-default'), > > That should fix your problem. What is actually happening is you are > raising 500s on 404s. That's why the 404 error page is not showing. > > Luke > luke.seelenbin...@gmail.com > > "I [may] disapprove of what you say, but I will defend to the death your > right to say it." -- Voltaire > > > > > > prabhu S wrote: >>>> Hi Karen, >>>> Thanks for replying. I have put my 404.html in the same place as that >>>> of500.html. To make sure, I even copy pasted500.html and changed the >>>> error message text alone. >>>> Here is an output from the django development server, when I tried to >>>> access "sdfsa" (Invalid url) >>>> [30/Jul/2009 18:25:45] "GET /admin/clienty/sdfsa HTTP/1.1"5001387 >>>> [30/Jul/2009 18:25:45] "GET /scripts/jquery-1.3.2.min.js HTTP/1.1"500 >>>> 1387 >>>> [30/Jul/2009 18:25:46] "GET /css/style.css HTTP/1.1"5001387 >>>> I have the sources online athttp://github.com/prabhu/invoicy. I would >>>> appreciate if you can take a look at settings.py and let me know if >>>> something is obvious. >>>> Thanks & Regards, >>>> Prabhu >>>> On Jul 30, 2:25 pm, Karen Tracey <kmtra...@gmail.com> wrote: >>>>> On Thu, Jul 30, 2009 at 8:40 AM, prabhu S <prabhu...@gmail.com> wrote: >>>>>> Hi All, >>>>>> I am not noticing a weird issue in django 1.1. When DEBUG is true in >>>>>> settings and if I try a non-existent url, django shows me a friendly >>>>>> 404 page. Now I create 404.html and500.html and place this in >>>>>> templates directory. Then If I turn off debug and try a non-existent >>>>>> url, I expect to see my 404 html. Instead django shows me500.html. >>>>>> Infact, even in development I see500error codes for missing css, >>>>>> images and js. >>>>>> Is anyone else noticing the same issue? Am I missing something? >>>>> I cannot recreate this. Are you absolutely sure everything is set so that >>>>> your 404.html is being found by the server? >>>>> Karen > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkpyTG0ACgkQXQrGVCncjPz94gCcCkyRaKjRdf11QcCU1x8qnRXp lPsAoIjA42jV5QHx/Vrs5pUje+JAnL88 =jGM0 -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---