Django model 字段名称(db_column)含有单个%时,查询表格出现IndexError: tuple index out of range错误
目录在field中使用%表示百分数软件版本代码models.pyviews.pyurls.py错误信息使用postgresql数据库使用sqlite3数据库原因分析解决方案
在field中使用%表示百分数
软件版本
Django 2.2.16
Python 3.5.6 (基于Anaconda)
代码
models.py
# hello.models
from django.db import models
# Create your models here.
class UncorrectColumn(m
原创
2020-09-09 20:38:18 ·
928 阅读 ·
0 评论