Re: Problme in creating dynamic ChoiceField

2014-08-05 Thread VIPUL BANSAL
Hi Daniel, It worked. Thanks a lot :) On Tuesday, August 5, 2014 7:08:34 PM UTC+5:30, Daniel Roseman wrote: > > On Tuesday, 5 August 2014 13:28:28 UTC+1, VIPUL BANSAL wrote: >> >> Hi, >> >> I trying to create a drop-down which gets repopulated every time we land

Problme in creating dynamic ChoiceField

2014-08-05 Thread VIPUL BANSAL
Hi, I trying to create a drop-down which gets repopulated every time we land on the page. If I use the following code everything works correctly: class DeleteMappingForm(forms.Form) : subAreaDropDown = forms.ChoiceField(choices = fetchChoices()) def deleteMapping(request): form = D

Is creating a view necessary ?

2014-07-31 Thread VIPUL BANSAL
Hi all, I have a complete HTML website and a few python scripts. I want to run those scripts via HTML events such as clicking a button. I read Django tutorial and found out that it is using Views to create HTML content. Is there any way I can do it without using the Views and use the HTML code