第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

Django Userena-正確覆蓋默認(rèn)的Django應(yīng)用程序模板嗎?

Django Userena-正確覆蓋默認(rèn)的Django應(yīng)用程序模板嗎?

寶慕林4294392 2021-03-20 04:39:18
我嘗試了鏈接上的指示,以使用特定于我的網(wǎng)站的模板替換默認(rèn)應(yīng)用程序模板。具體來(lái)說(shuō),我設(shè)置了以下文件結(jié)構(gòu):project_specific_app-templates--userena---files_with_same_names_as_userena_templates.htmlTEMPLATE_DIRS:TEMPLATE_DIRS = (    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".    # Always use forward slashes, even on Windows.    # Don't forget to use absolute paths, not relative paths.)但是,當(dāng)我嘗試更改“ files_with_same_name_as_userena_templates.html”的內(nèi)容并重新啟動(dòng)Web服務(wù)器時(shí),網(wǎng)頁(yè)不會(huì)更改我還忘記了什么?解決方案:在我的project / settings.py中查看TEMPLATE_DIRS并將其更改為/ absolute / path / to / project / specific / app / templates /之后,我的自定義模板起作用了。
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 179 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)