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?)?
Thanks!

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to