【发布时间】:2014-08-14 12:30:47
【问题描述】:
我有一个我在我的 settings.py 文件中通过以下方式导入的 url 列表:
from myproject.image_folders_link import Links
现在我的image_folders_link 包含以下常量:
MY_image_doctors_link = "http://www.mywebsite.com/images/doctors"
MY_image_patients_link = "http://www.mywebsite.com/images/patients"
现在我想在我的 Django 模板中使用它。我怎样才能通过这个?
【问题讨论】:
标签: python django templates django-templates django-views