1

Вопрос по jquery – используя jquery fullcalendar в приложении django

я используюError: User Rate Limit Exceeded jqueryError: User Rate Limit Exceededdjango Страница приложения блога. У меня есть некоторыеPostError: User Rate Limit Exceededuser и хотел бы показать ему представление календаря каждого месяца сnumber of postsError: User Rate Limit Exceeded

Error: User Rate Limit Exceededjavascript а такжеcssError: User Rate Limit ExceededfullcalendarError: User Rate Limit ExceededdjangoError: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Error: User Rate Limit ExceededdictError: User Rate Limit Exceeded

len(Post.objects.filter(month='april' ,day='1'))

Error: User Rate Limit ExceededdictError: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Я выбралfullcalendarError: User Rate Limit Exceeded

1ответ

4

Error: User Rate Limit Exceeded

<script>
    ...
    $('#calendar').fullCalendar({
        events: {{ posts_counts|safe }}
    });
    ...
</script>

Error: User Rate Limit Exceededposts_countsError: User Rate Limit ExceededError: User Rate Limit Exceeded.

Error: User Rate Limit Exceeded

def calendar(request):
    posts_counts = []
    for i in (1, 31):
        posts_counts.append({'title': len(Post.objects.filter(month='april', day=i)),
                             'start': '2012-04-%d' % i,
                             'end': '2012-04-%d' % i})
    return render(request, 'calendar_template.html',
                  {'posts_counts': simplejson.dumps(posts_counts)})

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

RelatedQuestions