摘要:
密码加密: def hash_pwd(source): return hashlib.new('sha512', source.encode('utf-8')).hexdigest() 或者使用django自带的加密 password = make_password(password) 阅读全文
摘要:
一、新建market相关的路由,带参数时用括号括起参数(?P<typrid>\d+) url(r'^market/', views.market, name='market'), url(r'^marketwithparams/(?P<typeid>\d+)/(?P<childcid>\d+)/(? 阅读全文