设计商品相关的表,主要是总库存,退货,进货,销售
优化登入验证码,去除1iO0这些让人难以区分的内容
重新设计文件目录
二.配置相关
setting.py
"""
Django settings for drf_test...files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.11/howto/static-files/
STATIC_URL..."
MEDIA_URL = "/img/"
MEDIA_ROOT = os.path.join(BASE_DIR, "img")
三.验证码相关
from django.shortcuts import...y1 = random.randint(0, height)
y2 = random.randint(0, height)
# 在图片上画线...0, 255), random.randint(0, 255), random.randint(0, 255)))
print(new_text)
#存在session中