date picker

14 views
Skip to first unread message

Sid

unread,
Dec 6, 2015, 12:44:58 PM12/6/15
to Django users
Hi all,

Problem:
I have a data set which shows on web page using django and another webpage consists of datepicker

code:(views.py)
def about(request):
   
#change the file name here every month
    x
='2015-10-30 00:00:00.000';
    table0
=connection.cursor()
    table0
.execute('''SELECT * INTO table0 FROM MASTER_DDA WHERE PROCESSING_DATE= %s''',[x]);

-The above programming displays the data of  MASTER_DDA according to [x] for PROCESSING_DATE , so what I want is I have to just click on the datepicker so it has to change the value of [x] and display accordingly on web page 
So can anyone please help me to built the code for it please
your help is much appreciated. Thanks again.

Sid  
Reply all
Reply to author
Forward
0 new messages