阅读背景:

如何在django网站上检查用户输入的条目是否在过去30天内已经被用户输入

来源:互联网 

I am building a survey website using Django 1.7.7 and Python 3.4.4, where a user enters say his "name" and "id". I have a sql table called "list" that stores all the users names and id's. I would like my Django website to check if when a user enters his/her name and id, if the id already exists in the table for the past 30 days. Basically if the user's id exists in the past 30 days, he/she will not be prompted to take the survey, else they would have to take the survey. I am building a survey website using Django 1.7




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: