def ready(self):
from django.shortcuts import resolve_url
from django.core.cache import cache
from libs.js_storage import JS_STORAGE
cache.delete('attachable_block_types')
JS_STORAGE.update({
'ajax_attached_block': resolve_url('blocks:ajax'),
})
评论列表
文章目录