Hi! I'm using dango 0.97 pre (yep, my site still was not upgraded to be compatible with trunk). I use apache + fastcgi for it. And I have a strange problem: sometimes (I can't guess the order) some of the views throw such error:
Tried audio_index in module mysite.audio.views. Error was: 'module' object has no attribute 'validators'
There is no any calls of validators in this view:
def audio_index(request, language):
audio_list = AudioFile.objects.all().filter(lang = language).order_by('-title')
audio_list = list(audio_list)[:10]
sections_list = AudioCategory.objects.all().filter(lang = language)
template_name = 'audio/index_' + language + '.html'
t = loader.get_template(template_name)
c = Context({
'sections_list': sections_list,
'lang': language,
'audio_list': audio_list,
'len1': len(audio_list),
'menu_item': 'audio',
})
return HttpResponse(t.render(c))
The most interesting fact is that if I will reload this page after some time, it will load absolutlely correct (I don't change any code or data in database before it). Do you have any ideas, what is it? Maybe it is non-django problem (apache? db?)?
The full stacktrace is as follows:
Traceback:
File "/home/shal_prod/django/django_src/django/core/handlers/base.py" in get_response
73. callback, callback_args, callback_kwargs = resolver.resolve(request.path)
File "/home/shal_prod/django/django_src/django/core/urlresolvers.py" in resolve
233. sub_match = pattern.resolve(new_path)
File "/home/shal_prod/django/django_src/django/core/urlresolvers.py" in resolve
172. return self.callback, args, kwargs
File "/home/shal_prod/django/django_src/django/core/urlresolvers.py" in _get_callback
184. raise ViewDoesNotExist, "Tried %s in module %s. Error was: %s" % (func_name, mod_name, str(e))
Exception Type: ViewDoesNotExist at /ru/about/
Exception Value: Tried index in module mysite.about.views. Error was: 'module' object has no attribute 'validators'