如何在Django-Bootstrap-Calendar中的日历上显示日历事件?

时间:2019-02-23 17:46:30

标签: django

请帮助我,我有django-bootstrap-calendar,已经将日历事件添加到了Admin中,超级用户可以在其中添加,编辑,删除事件。但是,无论何时创建事件,它都不会显示在日历上。我发现了一条相关的帖子here,但是它不起作用。

管理员

这是我配置管理员的方式

class CalendarEventAdmin(admin.ModelAdmin):
    list_display = ["title", "url", "css_class", "start", "end"]
    list_filler = ["title"]

admin.site.register(CalendarEvent, CalendarEventAdmin)

日历已加载:

{% load bootstrap_calendar %}
{% bootstrap_calendar_css %}

<!-- {% bootstrap_controls 'optional-css-classes' %} -->
{% bootstrap_calendar 'optional-css-classes' %} 

{% bootstrap_calendar_js language="template" %}
{% bootstrap_calendar_init language="template" %}

0 个答案:

没有答案