after entering number in the template page .am getting the error,that is:
NoReverseMatch at /record_system/studentid/
Reverse for 'record_system.views.search' with arguments '(None,)' and
keyword arguments '{}' not found.
and this is my new updated view..
def search(request , rollno):
hmmm i can find my solution after inserting this line
rollno = request.POST.get('rollno')
and this was the coding part of my application ,but can you please tell me
that why my *" if form.is_valid():* " is not working..what's wrong in
this??
On Fri, Jul 6, 2012 at 4:06 PM, manish girdhar
hm finally got it.thanks for the quick reply friend..thanks
alot.
On Fri, Jul 6, 2012 at 4:00 PM, Jani Tiainen wrote:
> 6.7.2012 13:18, manish girdhar kirjoitti:
>
> so sorry friend..am new to the django and am unable to catch your
>> point...can you please
6.7.2012 13:18, manish girdhar kirjoitti:
so sorry friend..am new to the django and am unable to catch your
point...can you please describe this with example or with my code..thank
you..
[Snip snip with binary scissors]
Problem is that there is two problem points:
Your view doesn't have
so sorry friend..am new to the django and am unable to catch your
point...can you please describe this with example or with my code..thank
you..
On Fri, Jul 6, 2012 at 3:08 PM, Jani Tiainen wrote:
> It doesn't ever work since you should rerender form with current data and
>
It doesn't ever work since you should rerender form with current data
and errors if form.valid() returns false.
Currently your logic doesn't return _nothing_ if form.valid() is false
def studentid(request):
if request.method == 'POST':
form = Student_loginForm(request.POST)
thanks for the concern firend but i already have an form.error in my
template...
*this is my template..
*
student id
{% if form.errors %}
Please correct the error{{ form.errors|pluralize }} below.
{% endif %}
STUDENT RECORD SYSTEM
Print out form.errors it will contain dictionary about fields and errors
in particular field.
You get the error because your form didn't validate in the first place
so either you have bad data, are missing required data or something else
in validation fails. form.errors will reveal that.
thank you for your concern friend,but i have an another view .in that it
perfectly worksbut here am getting problem and i know
*"if form.is_valid():"* is getting falsewhat am looking for is this,
that why here am getting problem.
this thing perfectlly works in my adding two number
There is no HttpResponse object returned if the form is *not* valid. You
might want to return a template saying that the form input was incorrect.
Tervitades/Regards
Karl Sutt
On Fri, Jul 6, 2012 at 11:49 AM, manish girdhar
wrote:
> hii tom,
> yeah i have rectidy
hii tom,
yeah i have rectidy rollno = cd["rollno"] ,but again am getting error
didn't get an httpresponse object...
this is my view.
def studentid(request):
if request.method == 'POST':
form = Student_loginForm(request.POST)
if form.is_valid():
cd =
On Thu, Jul 5, 2012 at 8:38 AM, manish girdhar
wrote:
> yes it was indentation error and i rectified that.thanks for the concern
> friend..
>
I would have thought that it was you refering to the undefined
variable rollno here:
cd = form.cleaned_data
yes it was indentation error and i rectified that.thanks for the concern
friend..
On Thu, Jul 5, 2012 at 12:40 PM, kenneth gonsalves
wrote:
> On Thu, 2012-07-05 at 12:29 +0530, manish girdhar wrote:
> > thanks for the help friend..after manipulate that thing i got an
On Thu, 2012-07-05 at 12:29 +0530, manish girdhar wrote:
> thanks for the help friend..after manipulate that thing i got an error
> of*
> *UnboundLocalError at /record_system/studentid/
>
> local variable 'rollno' referenced before assignment
error in indentation - it is difficult to check this
thank ...i rectify this error.
On Thu, Jul 5, 2012 at 12:29 PM, manish girdhar
wrote:
> thanks for the help friend..after manipulate that thing i got an error of*
> *UnboundLocalError at /record_system/studentid/
>
> local variable 'rollno' referenced before
thanks for the help friend..after manipulate that thing i got an error of*
*UnboundLocalError at /record_system/studentid/
local variable 'rollno' referenced before assignment
...
On Thu, Jul 5, 2012 at 11:52 AM, dizzydoc wrote:
> The only condition where this view
The only condition where this view wont return an HTTPResponse is when
request.method == 'POST' is True and form.is_valid() is False.
In this condition the outer if condtion would complete execution and exit
out since inner if condition is False and wont enter inner if condition.
I think you
i want to filter roll no from database,but when i enter the number ,browser
gives *view didn't return an HttpResponse object* this is my view..
def studentid(request):
if request.method == 'POST':
form = Student_loginForm(request.POST)
if form.is_valid():
cd
18 matches
Mail list logo