Re: Django python checkbox

2014-04-02 Thread Choro H
Thank you very much! This was helpful 2014年4月2日水曜日 11時41分11秒 UTC+9 Camilo Torres: > > Lets suppose you need the user to select which files to download: > --choro_checkbox.html > > > > Choro's quertion about checkboxes > > > Select files to download > > {% csrf_token %} > > File A

Re: Django python checkbox

2014-04-02 Thread Choro H
2014年4月2日水曜日 18時53分53秒 UTC+9 Choro H: > > > Thank you very much. > For example, i want to export only checked of a lot of information, > solike the following image: > > > >

Re: Django python checkbox

2014-04-02 Thread Choro H
2014年4月2日水曜日 10時21分56秒 UTC+9 Choro H: > > Sorry you all, > > so,i want to export csv from database that is only when checked > > > 2014年4月1日火曜日 13時22分31秒 UTC+9 Choro H: >> >>

Re: Django python checkbox

2014-04-02 Thread Choro H
Thank you very much. For example, i want to export only checked of a lot of information, solike the following image: 2014年4月2日水曜日 11時22分55秒 UTC+9 somecallitblues: > > There are a few ways in which you can do this. One of them is to add some > javascript to your code that will listen to

Re: Django python checkbox

2014-04-01 Thread Camilo Torres
Lets suppose you need the user to select which files to download: --choro_checkbox.html Choro's quertion about checkboxes Select files to download {% csrf_token %} File A File B File C File D File E File F Now, you must watch which of the files the user selected, but you have a

Re: Django python checkbox

2014-04-01 Thread Mario Gudelj
There are a few ways in which you can do this. One of them is to add some javascript to your code that will listen to onclick and check if your input button is selected. If it is it will submit the form that initiates your download. You can also do an Ajax post. Another way would be to create a

Re: Django python checkbox

2014-04-01 Thread Choro H
Sorry you all, so,i want to export csv from database that is only when checked 2014年4月1日火曜日 13時22分31秒 UTC+9 Choro H: > > Thank you very much! > I'm Sorry, i'm missing write comments, > I want to do download have been checboxd file from html, then i write to > views.py this code, so i

Re: Django python checkbox

2014-03-31 Thread Choro H
Thank you very much! I'm Sorry, i'm missing write comments, I want to do download have been checboxd file from html, then i write to views.py this code, so i don't know how do write ! Please help me! this is my right code: def export_selected_data(request): #if request.method == 'POST': #

Re: Django python checkbox

2014-03-31 Thread Choro H
Thank you very much! Sory, i'm missing write comments, I want to do download have been checboxd file from html, then i write to views.py this code, so i don't know how do write ! Please help me! this is my right code: def export_selected_data(request): #if request.method == 'POST': #

Re: Django python checkbox

2014-03-31 Thread Camilo Torres
Hello, You should start with the basics: https://docs.djangoproject.com/en/1.6/topics/http/file-uploads/ You are using request.FILES and that is for file upload, no file download. To upload a file to the server, you must have a in your template, which you don't have. To download files from

Django python checkbox

2014-03-31 Thread Choro H
Hello, i wan to do download file of a checkbox ; Please help me this is my viewspy: def export_selected_dataqq(request): if request.method == 'POST': _selected_action = request.FILES("_selected_action") response = HttpResponse(mimetype='application/vnd.ms-excel;