随笔分类 -  django

摘要:http://docs.30c.org/djangobook2/chapter10/ def first_names(self, last_name): cursor = connection.cursor() cursor.execute(""" SELECT DISTINCT first_nam 阅读全文
posted @ 2018-04-22 23:07 nanaindi 阅读(152) 评论(0) 推荐(0)
摘要:Django默认支持以下5个转化器: str,匹配除了路径分隔符(/)之外的非空字符串,这是默认的形式 /ss dds/ int,匹配正整数,包含0。 slug,匹配字母、数字以及横杠、下划线组成的字符串。 /ss dds/这种无法匹配 uuid,匹配格式化的uuid,如 075194d3 6885 阅读全文
posted @ 2018-04-17 18:53 nanaindi 阅读(156) 评论(0) 推荐(0)