阅读背景:

Django:如何将login_required decorator应用到整个站点(不包括静态媒体)?

来源:互联网 

The example provides a snippet for an application level view, but what if I have lots of different (and some non-application) entries in my "urls.py" file, including templates? How can I apply this login_required decorator to each of them? provides a snippet for an applicati




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: