2016-07-15 23 views

回答

1

如果你看看這裏:https://github.com/groveco/django-sql-explorer/blob/master/explorer/templates/explorer/base.html你會看到django-sql-explorer定義了一個explorer/base.html,其他模板可以覆蓋它。所以,如果你想用你自己的base.html在你的一個應用裏創建一個名爲templates/explorer的目錄,並在那裏添加一個base.html(這將覆蓋django-sql-explorer的目錄)。

請注意,這個base.html不能與您自己的網站的base.html相同,因爲您需要尊重django-sql-explorer實際定義的塊名稱,以便內容可見。