Re: Trouble with Django and jQuery

2009-02-06 Thread varikin
> > The external jQuery script doesn't go through Django, so obviously the > > template variables aren't parsed. As you have discovered, you can put > > javascript in the template so that it is parsed. So you already have > > the answer to your question: use a small script within your template,

Re: Trouble with Django and jQuery

2009-02-05 Thread min
Ok, I will try this way. Thank a lot! On Feb 5, 11:50 pm, Daniel Roseman wrote: > On Feb 5, 12:19 pm, min wrote: > > > > > > > Hi, everyone. > > > I'm learing Django now. Currently, I have a problem with Django and > > jQuery. The detail

Re: Trouble with Django and jQuery

2009-02-05 Thread Daniel Roseman
On Feb 5, 12:19 pm, min wrote: > Hi, everyone. > > I'm learing Django now. Currently, I have a problem with Django and > jQuery. The detail is that: > > Firstly, I have a form in the forms.py: > > class TestForm(forms.Form): >     name = forms.CharField( max_length=30 ) >

Trouble with Django and jQuery

2009-02-05 Thread min
Hi, everyone. I'm learing Django now. Currently, I have a problem with Django and jQuery. The detail is that: Firstly, I have a form in the forms.py: class TestForm(forms.Form): name = forms.CharField( max_length=30 ) Then, in the views.py: def Test_page(request): form = TestForm()