0
我有有TEMPLATE_NAME領域的典範,我有這個通用視圖:如何從數據庫加載通用視圖的template_name?
url(r'^/post/(?P<slug>[a-zA-Z0-9_.-]+)$', 'django.views.generic.list_detail.object_detail', {
"template_object_name" : "post",
'template_name': 'post_details.html'
}, 'index')
我怎麼能代替從「post_details.html」的TEMPLATE_NAME裏面後的TEMPLATE_NAME?