Eroneous error with development server: 'module' object has no attribute 'urlpatterns'

2007-07-01 Thread Steve Bergman
I've been frequently encountering this problem. I'm on revision 5582 and using the development web server. Often, but not always, after I have some other error, my next request gets the error below, and I have to restart the server to get past it. I believe this happens after I run into a synta

Re: Eroneous error with development server: 'module' object has no attribute 'urlpatterns'

2007-07-07 Thread Steve Bergman
I'm still seeing this with 5631. It is definitely after I hit a syntax errror in my code that I see the behavior. I'm wondering if I am the only one seeing this. Or if is perhaps expected behavior. Thanks, Steve Bergman --~--~-~--~~~---~--~~ You received this m

Re: Eroneous error with development server: 'module' object has no attribute 'urlpatterns'

2007-07-07 Thread Malcolm Tredinnick
On Sat, 2007-07-07 at 19:15 +, Steve Bergman wrote: > I'm still seeing this with 5631. It is definitely after I hit a > syntax errror in my code that I see the behavior. I'm wondering if I > am the only one seeing this. Or if is perhaps expected behavior. What you do mean by "after you hit

Re: Eroneous error with development server: 'module' object has no attribute 'urlpatterns'

2007-07-07 Thread Steve Bergman
Apologies if I was not clear. Yes, I was expecting that if I had a syntax error in my code, the development server (./manage.py runserver) would either abort completely or restart itself. Instead, I see the error page directing me to the syntax error, which I fix, and then reload the page or try

Re: Eroneous error with development server: 'module' object has no attribute 'urlpatterns'

2007-07-07 Thread Malcolm Tredinnick
On Sat, 2007-07-07 at 19:51 +, Steve Bergman wrote: > Apologies if I was not clear. Yes, I was expecting that if I had a > syntax error in my code, the development server (./manage.py > runserver) would either abort completely or restart itself. > > Instead, I see the error page directing me

Re: Eroneous error with development server: 'module' object has no attribute 'urlpatterns'

2007-07-07 Thread Steve Bergman
This problem seems to occur whenever there is any syntax error in my code *anywhere*. I just introduced one about a hundred lines into my view function and triggered it. Here is a simple test case, complete with sample syntax error: === urls.py: from django.conf.urls.defaults import * from

Re: Eroneous error with development server: 'module' object has no attribute 'urlpatterns'

2007-07-07 Thread Steve Bergman
Some additional info. I zapped my django installation and reinstalled from svn from scratch. I still had the problem. I tar'd up my project and moved it to a CentOS 5 box running 5631 and I do *not* experience the problem there. The two salient differences between the machines is that the prob