摘要: 使用get_or_create() 使用方式 user, b = User.objects.get_or_create(u_id=1, name="张三", defaults={'address':'上海'}) print(user) 等同于 users = User.objects.get(u_i 阅读全文
posted @ 2023-05-27 17:06 Oops!# 阅读(252) 评论(0) 推荐(0) 编辑
摘要: Django forms are an advanced set of HTML forms that can be created using python and support all features of HTML forms in a pythonic way. Rendering Dj 阅读全文
posted @ 2023-05-27 16:42 Oops!# 阅读(13) 评论(0) 推荐(0) 编辑