Well,.. the strange thing is though that this only happens some of the time not all of the time. And I also haven't yet been able to predict when it happens.
I doubt it is an python syntax error, since the files are fairly small and they do work most of the time. I do nothing fancy in them either. Timothy p.s. I will be switching this project over to 1.0 soon, unfortunately that is not an option at this moment. On Fri, Oct 3, 2008 at 9:02 AM, Malcolm Tredinnick <[EMAIL PROTECTED] > wrote: > > > On Fri, 2008-10-03 at 08:55 +0200, Timothy Kanters wrote: > > I have a strange error on my live server. On the development server > > everything works just fine. > > > > About half the time I get an error: > > > > ViewDoesNotExist at /companies/ > > Tried list in module vicrsa.companies.views. Error was: 'module' > > object has no attribute 'models' > > Request Method: GET > > Request URL: http://*********/companies/ > > Exception Type: ViewDoesNotExist > > Exception Value: Tried list in module vicrsa.companies.views. > > Error was: 'module' object has no attribute 'models' > > Exception Location: > > /django/django-0.96/django/core/urlresolvers.py in _get_callback, > > line 129 > > > > This happens with 2 models from 2 different applications. > > > > My setup is: Apache + mod_python + django 0.96 > > I always restart apache after updating and this time I've also > > rebooted the server and removed all .pyc files. > > > > Any clues? > > I suspect this is going to come down to you having a Python error in one > of your files. Most likely vicrsa/companies/views.py, by the looks of > it. Django is trying import an the models module from something and it > isn't working. Unfortunately, the error reporting there is fairly weak > in Django, so you'll have to track things down one line at a time (try > removing URL patterns until the problem goes away). > > Coincidentally, I am, right this minute, writing code to add better > error reporting to that part of Django, so when you get around to > upgrading to the 1.0 version of the code (and after 1.0.1 comes out) > there should be some improvements waiting for you in that area. > > Regards, > Malcolm > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---