Django dynamic form simple Example

2011-05-27 Thread Afshin Moshrefi
I have a simple requirement for creating a dynamic form in Django - I've seen many examples but they seem to be incomplete, or require more extensive knowledge of Python and Django than I have! None show how the dynamic portion of the example should be called: This is the form class with Q1 and

Dynamically Add Fields to a Form

2011-05-26 Thread Afshin Moshrefi
I need to add fields dynamically to a form : I've got some excellent replies and I understand I have to overload __init__ function in the form class to achieve this. My question is what would the view look like? I'm not sure how the addition of a new field by __init__ is achieved dynamically?!

Re: Dynamic Forms

2011-05-26 Thread Afshin Moshrefi
The information is helpful as it is helping me understand some basics of Django. I am experienced in old web dev technologies but I am new to both Python and Django and I see the information on the articles and Internet targeted for experienced python / django developers. I have a stupid

Dynamic Forms

2011-05-24 Thread Afshin Moshrefi
I want to write a form which can dynamically add fields. I can simply add additional fields that I need with JavaScript but am not sure if that is the best way to handle this with Django? What are the best ways to handle creating and processing such dynamic form with Django? AM -- You

Re: Can't get Django to work on windows XP - I must be missing something obvious!

2011-05-16 Thread Afshin Moshrefi
I figured it out - feel kind of silly Had to run setup.py in Django directory under Google App Engine install. On May 16, 2:05 pm, Afshin Moshrefi <afshinmoshr...@gmail.com> wrote: > I updated PATH and PYTHONPATH as environmnet variable on windows and > also by going to python and

Re: Can't get Django to work on windows XP - I must be missing something obvious!

2011-05-16 Thread Afshin Moshrefi
jango.core I'm wondering if I did something wrong in installation or does everyone have this environment issue with Django when installing GAE on windows?! On May 16, 11:50 am, Baurzhan Ismagulov <i...@radix50.net> wrote: > On Mon, May 16, 2011 at 08:14:09AM -0700, Afshin Moshrefi wrot

Can't get Django to work on windows XP - I must be missing something obvious!

2011-05-16 Thread Afshin Moshrefi
I really must be missing something obvious. I've installed app engine on windows xp. All seems to work until I tried a Django example! I first tried to make a django project: django-admin.py startproject testapp failed because i think django-admin.py was not not on the path. I updated