我对姜戈完全陌生。我有一个很大的项目。我需要添加一个功能:批量编辑使用django管理面板。我知道如何进行另一个操作,但我不知道如何将用户从一个管理页面重定向到另一个管理页面。我如何才能做到这一点?我的action函数: mymodels = django.apps.apps.get_modelHttpResponse()<--- Here I need
'QuerySet' object has no attribute 'serialize'from django.core.serializers import serializeclass UpdateQuerySet(models.QuerySet): print("*****Entered the serizlize'auto_increment_id','user',
我有一个自定义的Django登录页面。当用户名或密码字段为空时,我想抛出一个异常。我该怎么做呢?def user_login(request): if request.method == 'POST': # This information is obtained from the login form.