Re: Why Syntax Errors in URLconf are Silent?
On Saturday 07 Feb 2009 2:38:46 pm Guy Rutenberg wrote: > > what type of syntax error? I put an extra comma in my urls file and the > > app promptly crashed. > > I wrote "pattenrs" instead of "patterns" and the sure did crash. But > instead of crashing and reporting a Syntax Error exception it reported > a failure to do a reverse lookup, which I found to be confusing. that error message is a little confusing - if, for example, you have a url pointing to a view that doesnt exist, you get a message like 'module views' does not exist. -- regards KG http://lawgon.livejournal.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Why Syntax Errors in URLconf are Silent?
Hi, On Feb 7, 8:43 am, Kenneth Gonsalveswrote: > what type of syntax error? I put an extra comma in my urls file and the app > promptly crashed. > I wrote "pattenrs" instead of "patterns" and the sure did crash. But instead of crashing and reporting a Syntax Error exception it reported a failure to do a reverse lookup, which I found to be confusing. Thanks, Guy --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Why Syntax Errors in URLconf are Silent?
On Saturday 07 Feb 2009 12:05:01 pm Guy Rutenberg wrote: > I've included a app specific URLconf in my main URLconf file. I had > some syntax errors in the included URLconf file, however instead of > throwing an exception about the syntax error, an exceptions was thrown > when I've tried to use the "reverse()" function on the URLs of the > included URLconf. what type of syntax error? I put an extra comma in my urls file and the app promptly crashed. -- regards KG http://lawgon.livejournal.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Why Syntax Errors in URLconf are Silent?
Hi, I've included a app specific URLconf in my main URLconf file. I had some syntax errors in the included URLconf file, however instead of throwing an exception about the syntax error, an exceptions was thrown when I've tried to use the "reverse()" function on the URLs of the included URLconf. It took me some time to find out what was the real problem, because the syntax errors where silent. Is there some reason Django silences the errors in URLconf files? I've used the development server and had DEBUG=True Thanks, Guy http://www.guyrutenberg.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---