📜  django admin 所需的装饰器 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:18.213000             🧑  作者: Mango

代码示例1
from django.contrib.auth.decorators import login_required

@login_required
def my_view(request):
    ...