【发布时间】:2014-04-02 15:48:18
【问题描述】:
有谁知道我如何从 request.get_full_path() 中获取 URL 名称?
例如:
我在 urls.py 中有这个 URL
url(r'^evaluation-active/$', 'web.evaluation.evaluation', name='evaluation'),
在我的 context_processor.py 中:
def is_evaluation(request):
return {"test":request.get_full_path()}
如何返回“evaluation”而不是“/evaluation-active/”?
谢谢
【问题讨论】: