Re: view didn't return an HttpResponse object....plz help

2012-07-06 Thread manish girdhar
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 <manishgirdha...@gmail.com>wrote:

> hm  finally got it.thanks for the quick reply friend..thanks
> alot.
>
>
> On Fri, Jul 6, 2012 at 4:00 PM, Jani Tiainen <rede...@gmail.com> 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 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 "default path" so
>> IF request.method is POST and IF form.is_valid is FALSE your code doesn't
>> return anything.
>>
>> This means that your view will return something only if request.method is
>> not POST (return render_to_response(...) is called) or if request.method is
>> POST and form.is_valid() is true (return HttpResponseRedirect(..) is called)
>>
>> Simplest way to fix it is to indent last "return render_to_response..."
>> one level outer (same level as if request.method == 'POST' and last else)
>> making it to be executed if request.method is not POST or if
>> form.is_valid() is false.
>>
>> In short form:
>>
>>
>> def studentid(request):
>> if request.method == 'POST'
>> form = Student_loginForm(request.**POST)
>> if form.is_valid():
>> return HttpResponseRedirect(...)
>> else:
>> form = Student_loginForm()
>> return render_to_response('add_**record/studentid.html', ...)
>>
>>
>>
>> --
>> Jani Tiainen
>>
>> - Well planned is half done and a half done has been sufficient before...
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to django-users+unsubscribe@**
>> googlegroups.com <django-users%2bunsubscr...@googlegroups.com>.
>> For more options, visit this group at http://groups.google.com/**
>> group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
>> .
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: view didn't return an HttpResponse object....plz help

2012-07-06 Thread 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 <rede...@gmail.com> 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 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 "default path" so
> IF request.method is POST and IF form.is_valid is FALSE your code doesn't
> return anything.
>
> This means that your view will return something only if request.method is
> not POST (return render_to_response(...) is called) or if request.method is
> POST and form.is_valid() is true (return HttpResponseRedirect(..) is called)
>
> Simplest way to fix it is to indent last "return render_to_response..."
> one level outer (same level as if request.method == 'POST' and last else)
> making it to be executed if request.method is not POST or if
> form.is_valid() is false.
>
> In short form:
>
>
> def studentid(request):
> if request.method == 'POST'
> form = Student_loginForm(request.**POST)
> if form.is_valid():
> return HttpResponseRedirect(...)
> else:
> form = Student_loginForm()
> return render_to_response('add_**record/studentid.html', ...)
>
>
>
> --
> Jani Tiainen
>
> - Well planned is half done and a half done has been sufficient before...
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to django-users+unsubscribe@**
> googlegroups.com <django-users%2bunsubscr...@googlegroups.com>.
> For more options, visit this group at http://groups.google.com/**
> group/django-users?hl=en<http://groups.google.com/group/django-users?hl=en>
> .
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: view didn't return an HttpResponse object....plz help

2012-07-06 Thread manish girdhar
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 <rede...@gmail.com> wrote:

> 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)
> if form.is_valid():
> cd = form.cleaned_data
> rollno = cd['rollno']
> return HttpResponseRedirect(reverse('**record_system.views.search'
> , args=(rollno)))
> # No else here, nothing is rendered!
>
> else:
> # This else is for if request.method == POST
>
> form = Student_loginForm()
> return render_to_response('add_**record/studentid.html',
> context_instance=**RequestContext(request))
>
>
> I suggest that you put last return one indent level to left so it will
> always render either errored form or in case method was not POST empty form.
>
> 6.7.2012 12:31, manish girdhar kirjoitti:
>
>> 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
>>  
>>  
>>  {% csrf_token %}
>>
>>  Student Roll no:
>>   
>>   
>>  
>>
>>
>>
>> 
>> 
>>
>>
>> On Fri, Jul 6, 2012 at 2:49 PM, Jani Tiainen <rede...@gmail.com
>> <mailto:rede...@gmail.com>> wrote:
>>
>> 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.
>>
>> 6.7.2012 12:16, manish girdhar kirjoitti:
>>
>> 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 view's
>> appication.
>>
>>
>> On Fri, Jul 6, 2012 at 2:35 PM, Karl Sutt <k...@sutt.ee
>> <mailto:k...@sutt.ee>
>> <mailto:k...@sutt.ee <mailto:k...@sutt.ee>>> wrote:
>>
>>  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
>>  <manishgirdha...@gmail.com
>> <mailto:manishgirdhar88@gmail.**com <manishgirdha...@gmail.com>>
>> <mailto:manishgirdhar88@gmail.**__com
>>
>> <mailto:manishgirdhar88@gmail.**com <manishgirdha...@gmail.com>>>>
>> wrote:
>>
>>  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 = form.cleaned_data
>>   rollno = cd['rollno']
>>   return
>>
>> HttpResponseRedirect(reverse('**__record_system.views.search' ,
>>
>>  args=(rollno)))
>>   else:
>>       form = Student_loginForm()
>>
&

Re: view didn't return an HttpResponse object....plz help

2012-07-06 Thread manish girdhar
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


{% csrf_token %}

Student Roll no:
 
 








On Fri, Jul 6, 2012 at 2:49 PM, Jani Tiainen <rede...@gmail.com> wrote:

> 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.
>
> 6.7.2012 12:16, manish girdhar kirjoitti:
>
>> 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 view's appication.
>>
>>
>> On Fri, Jul 6, 2012 at 2:35 PM, Karl Sutt <k...@sutt.ee
>> <mailto:k...@sutt.ee>> wrote:
>>
>> 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
>> <manishgirdha...@gmail.com 
>> <mailto:manishgirdhar88@gmail.**com<manishgirdha...@gmail.com>>>
>> wrote:
>>
>> 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 = form.cleaned_data
>>  rollno = cd['rollno']
>>  return
>> HttpResponseRedirect(reverse('**record_system.views.search' ,
>> args=(rollno)))
>>  else:
>>  form = Student_loginForm()
>>
>>  return render_to_response('add_**record/studentid.html',
>> context_instance=**RequestContext(request))
>>
>>
>>     the error is in*"if form.is_valid: "*..its getting false and
>>
>> ultimately the further process is not going on..
>>
>> thanks in advance.
>>
>>
>> On Thu, Jul 5, 2012 at 7:34 PM, Tom Evans
>> <tevans...@googlemail.com 
>> <mailto:tevans.uk@googlemail.**com<tevans...@googlemail.com>>>
>> wrote:
>>
>> On Thu, Jul 5, 2012 at 8:38 AM, manish girdhar
>> <manishgirdha...@gmail.com
>> <mailto:manishgirdhar88@gmail.**com<manishgirdha...@gmail.com>>>
>> 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
>>  rollno = cd[rollno]
>>  rollno = request.POST.get(rollno)
>>
>> Should it not read:
>>
>>  cd = form.cleaned_data
>>  rollno = cd["rollno"]
>>  rollno = request.POST.get(rollno)
>>
>> Cheers
>>
>> Tom
>>
>> --
>> You received this message because you are subscribed to the
>> Google Groups "Django users" group.
>> To post to this group, send email to
>> django-users@googlegroups.com
>> 
>> <mailto:django-users@**googlegroups.com<django-users@googlegroups.com>
>> >.
>>
>> To unsubscribe from this group, send email to
>> 
>> django-users+unsubscribe@**googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
>> 
>> <mailto:django-user

Re: view didn't return an HttpResponse object....plz help

2012-07-06 Thread manish girdhar
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 view's appication.


On Fri, Jul 6, 2012 at 2:35 PM, Karl Sutt <k...@sutt.ee> wrote:

> 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 <manishgirdha...@gmail.com
> > wrote:
>
>> 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 = form.cleaned_data
>> rollno = cd['rollno']
>> return
>> HttpResponseRedirect(reverse('record_system.views.search' , args=(rollno)))
>> else:
>> form = Student_loginForm()
>>
>> return render_to_response('add_record/studentid.html',
>> context_instance=RequestContext(request))
>>
>>
>> the error is in* "if form.is_valid: "*..its getting false and ultimately
>> the further process is not going on..
>>
>> thanks in advance.
>>
>>
>> On Thu, Jul 5, 2012 at 7:34 PM, Tom Evans <tevans...@googlemail.com>wrote:
>>
>>> On Thu, Jul 5, 2012 at 8:38 AM, manish girdhar
>>> <manishgirdha...@gmail.com> 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
>>> rollno = cd[rollno]
>>> rollno = request.POST.get(rollno)
>>>
>>> Should it not read:
>>>
>>> cd = form.cleaned_data
>>> rollno = cd["rollno"]
>>> rollno = request.POST.get(rollno)
>>>
>>> Cheers
>>>
>>> Tom
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> django-users+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/django-users?hl=en.
>>>
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: view didn't return an HttpResponse object....plz help

2012-07-06 Thread manish girdhar
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 = form.cleaned_data
rollno = cd['rollno']
return
HttpResponseRedirect(reverse('record_system.views.search' , args=(rollno)))
else:
form = Student_loginForm()
return render_to_response('add_record/studentid.html',
context_instance=RequestContext(request))


the error is in* "if form.is_valid: "*..its getting false and ultimately
the further process is not going on..

thanks in advance.

On Thu, Jul 5, 2012 at 7:34 PM, Tom Evans <tevans...@googlemail.com> wrote:

> On Thu, Jul 5, 2012 at 8:38 AM, manish girdhar
> <manishgirdha...@gmail.com> 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
> rollno = cd[rollno]
> rollno = request.POST.get(rollno)
>
> Should it not read:
>
> cd = form.cleaned_data
> rollno = cd["rollno"]
> rollno = request.POST.get(rollno)
>
> Cheers
>
> Tom
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: view didn't return an HttpResponse object....plz help

2012-07-05 Thread manish girdhar
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
<law...@thenilgiris.com>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 error
> > of*
> > *UnboundLocalError at /record_system/studentid/
> >
> > local variable 'rollno' referenced before assignment
> ah
> error in indentation - it is difficult to check this from your mail, so
> please paste the code in dpaste.com so that we can see what the exact
> indentation is.
> --
> regards
> Kenneth Gonsalves
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: view didn't return an HttpResponse object....plz help

2012-07-05 Thread manish girdhar
thank ...i rectify this error.

On Thu, Jul 5, 2012 at 12:29 PM, manish girdhar
<manishgirdha...@gmail.com>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
>
> ...
>
> On Thu, Jul 5, 2012 at 11:52 AM, dizzydoc <htc.karanagar...@gmail.com>wrote:
>
>> 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 should move out the return statement from the else loop.
>>
>>
>> On Thursday, July 5, 2012 10:43:29 AM UTC+5:30, rick wrote:
>>>
>>>
>>> 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 = form.cleaned_data
>>> rollno = cd[rollno]
>>> rollno = request.POST.get(rollno)
>>> results = Add_record.objects.filter(**Student_ID=rollno)
>>> return 
>>> HttpResponseRedirect(reverse('**record_system.views.search'
>>> ,args=(results,)))
>>> else:
>>> form = Student_loginForm
>>> return render_to_response('add_**record/studentid.html',
>>> context_instance=**RequestContext(request))
>>>
>>>
>>> please help...
>>> thanks in advance.
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/django-users/-/6178-1cjLacJ.
>>
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: view didn't return an HttpResponse object....plz help

2012-07-05 Thread manish girdhar
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 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 should move out the return statement from the else loop.
>
>
> On Thursday, July 5, 2012 10:43:29 AM UTC+5:30, rick wrote:
>>
>>
>> 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 = form.cleaned_data
>> rollno = cd[rollno]
>> rollno = request.POST.get(rollno)
>> results = Add_record.objects.filter(**Student_ID=rollno)
>> return 
>> HttpResponseRedirect(reverse('**record_system.views.search'
>> ,args=(results,)))
>> else:
>> form = Student_loginForm
>> return render_to_response('add_**record/studentid.html',
>> context_instance=**RequestContext(request))
>>
>>
>> please help...
>> thanks in advance.
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/6178-1cjLacJ.
>
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: am new bird to django,need some suggestion...please please do reply friend..

2012-07-03 Thread manish girdhar
hmmm sorry guysreally appreciated your point..i will surely do
that..even i have started with that..

On Tue, Jul 3, 2012 at 12:00 AM, Daniel Roseman wrote:

> On Monday, 2 July 2012 18:38:12 UTC+1, rick wrote:
>>
>> h i will try my best.actually i have already read that
>> documentation but when i went to make application,then i got problem in
>> using filter functions..and this kind of functions are not mentioned in the
>> documentation.thats why i was facing problem.anyhow i will again
>> read this...but friend can you send me the link of a basic small
>> application..so that i just hang into that...
>>
>
> Seriously, people here are rapidly going to stop being your "friend" if
> you don't do the minimum to help yourself. I've already pointed you to the
> actual documentation, where those functions *are* not only mentioned but
> fully explained. If you choose not to read it, that's up to you, but you
> shouldn't then expect people to help you.
> --
> DR.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/Hp4fZubovAAJ.
>
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: am new bird to django,need some suggestion...please please do reply friend..

2012-07-02 Thread manish girdhar
h i will try my best.actually i have already read that
documentation but when i went to make application,then i got problem in
using filter functions..and this kind of functions are not mentioned in the
documentation.thats why i was facing problem.anyhow i will again
read this...but friend can you send me the link of a basic small
application..so that i just hang into that...

On Mon, Jul 2, 2012 at 3:14 PM, Timothy Makobu
<makobu.mwambir...@gmail.com>wrote:

> Once you're over the learning curve, you wont believe how easy Django
> makes web development. These devs thought, and keep thinking of everything.
> Just hang in there.
>
>
> On Mon, Jul 2, 2012 at 10:58 AM, manish girdhar <manishgirdha...@gmail.com
> > wrote:
>
>> okay friend.thanks alot.
>>
>>
>> On Mon, Jul 2, 2012 at 11:58 AM, Timothy Makobu <
>> makobu.mwambir...@gmail.com> wrote:
>>
>>> First read *ALL* of this  http://docs.python.org/tutorial/ if
>>> you haven't already, then redo this tutorial
>>> https://docs.djangoproject.com/en/1.4/intro/tutorial01/ as many times
>>> as you need to to understand everything in it.
>>>
>>>
>>> On Mon, Jul 2, 2012 at 8:15 AM, manish girdhar <
>>> manishgirdha...@gmail.com> wrote:
>>>
>>>> hmm hmmm no i have not read that page...can you please send me the link
>>>> of that page...i didnot find that...i checked
>>>> http://www.djangobook.com/en/1.0/ and http://www.djangobook.com/en/2.0/
>>>>
>>>> and please suggest me some application or link ,which is basic and open
>>>> source.. so that i can get through of it and learned basic things..
>>>>
>>>>
>>>> On Mon, Jul 2, 2012 at 3:28 AM, Daniel Roseman 
>>>> <dan...@roseman.org.uk>wrote:
>>>>
>>>>> On Sunday, 1 July 2012 16:07:28 UTC+1, rick wrote:
>>>>>>
>>>>>> hello django lovers, am new bird to this language and i have read
>>>>>> django documentation  and did not able to learnt it properly . am making 
>>>>>> a
>>>>>> small application of *students management system *,in which i have
>>>>>> to do* insertion of new record ,deletion and search of record.*..and
>>>>>> am facing problem at each step.and unable to understand..so please send
>>>>>> link of some open source *basic application* .so that i can download
>>>>>> it and understand it properly...
>>>>>>
>>>>>> or send link of some documentation where function like filter(
>>>>>> ),get_object_or_404() is being used...because these functions are not in
>>>>>> documentation..
>>>>>>
>>>>>> THANK YOU in advance..
>>>>>>
>>>>>
>>>>> Is there something wrong with the documentation index, which has a
>>>>> clear link to a page entitled "Executing queries"? Or the docs search
>>>>> engine, where you can enter "get_object_or_404" and get a direct link to
>>>>> the place where that function is documented?
>>>>> --
>>>>> DR.
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Django users" group.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msg/django-users/-/RB4PPeu8HhgJ.
>>>>>
>>>>> To post to this group, send email to django-users@googlegroups.com.
>>>>> To unsubscribe from this group, send email to
>>>>> django-users+unsubscr...@googlegroups.com.
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/django-users?hl=en.
>>>>>
>>>>
>>>>  --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Django users" group.
>>>> To post to this group, send email to django-users@googlegroups.com.
>>>> To unsubscribe from this group, send email to
>>>> django-users+unsubscr...@googlegroups.com.
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/django-users?hl=en.
>>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To post to this group, send email to d

Re: am new bird to django,need some suggestion...please please do reply friend..

2012-07-02 Thread manish girdhar
okay friend.thanks alot.

On Mon, Jul 2, 2012 at 11:58 AM, Timothy Makobu <makobu.mwambir...@gmail.com
> wrote:

> First read *ALL* of this  http://docs.python.org/tutorial/ if
> you haven't already, then redo this tutorial
> https://docs.djangoproject.com/en/1.4/intro/tutorial01/ as many times as
> you need to to understand everything in it.
>
>
> On Mon, Jul 2, 2012 at 8:15 AM, manish girdhar 
> <manishgirdha...@gmail.com>wrote:
>
>> hmm hmmm no i have not read that page...can you please send me the link
>> of that page...i didnot find that...i checked
>> http://www.djangobook.com/en/1.0/ and http://www.djangobook.com/en/2.0/
>>
>> and please suggest me some application or link ,which is basic and open
>> source.. so that i can get through of it and learned basic things..
>>
>>
>> On Mon, Jul 2, 2012 at 3:28 AM, Daniel Roseman <dan...@roseman.org.uk>wrote:
>>
>>> On Sunday, 1 July 2012 16:07:28 UTC+1, rick wrote:
>>>>
>>>> hello django lovers, am new bird to this language and i have read
>>>> django documentation  and did not able to learnt it properly . am making a
>>>> small application of *students management system *,in which i have to
>>>> do* insertion of new record ,deletion and search of record.*..and am
>>>> facing problem at each step.and unable to understand..so please send link
>>>> of some open source *basic application* .so that i can download it and
>>>> understand it properly...
>>>>
>>>> or send link of some documentation where function like filter(
>>>> ),get_object_or_404() is being used...because these functions are not in
>>>> documentation..
>>>>
>>>> THANK YOU in advance..
>>>>
>>>
>>> Is there something wrong with the documentation index, which has a clear
>>> link to a page entitled "Executing queries"? Or the docs search engine,
>>> where you can enter "get_object_or_404" and get a direct link to the place
>>> where that function is documented?
>>> --
>>> DR.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msg/django-users/-/RB4PPeu8HhgJ.
>>>
>>> To post to this group, send email to django-users@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> django-users+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/django-users?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: am new bird to django,need some suggestion...please please do reply friend..

2012-07-01 Thread manish girdhar
hmm hmmm no i have not read that page...can you please send me the link of
that page...i didnot find that...i checked http://www.djangobook.com/en/1.0/and
http://www.djangobook.com/en/2.0/

and please suggest me some application or link ,which is basic and open
source.. so that i can get through of it and learned basic things..

On Mon, Jul 2, 2012 at 3:28 AM, Daniel Roseman wrote:

> On Sunday, 1 July 2012 16:07:28 UTC+1, rick wrote:
>>
>> hello django lovers, am new bird to this language and i have read django
>> documentation  and did not able to learnt it properly . am making a small
>> application of *students management system *,in which i have to do*insertion 
>> of new record ,deletion and search of record.
>> *..and am facing problem at each step.and unable to understand..so
>> please send link of some open source *basic application* .so that i can
>> download it and understand it properly...
>>
>> or send link of some documentation where function like filter(
>> ),get_object_or_404() is being used...because these functions are not in
>> documentation..
>>
>> THANK YOU in advance..
>>
>
> Is there something wrong with the documentation index, which has a clear
> link to a page entitled "Executing queries"? Or the docs search engine,
> where you can enter "get_object_or_404" and get a direct link to the place
> where that function is documented?
> --
> DR.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/RB4PPeu8HhgJ.
>
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: am new to use forms in django..

2012-07-01 Thread manish girdhar
hii..thanks for the concern ... yeha i have gone through it..and now
that problem is solved..

On Sun, Jul 1, 2012 at 5:33 PM, pankaj anand wrote:

> Have you gone through this ?
>
> https://docs.djangoproject.com/en/dev/topics/forms/?from=olddocs
>
>
> On Saturday, 30 June 2012 01:09:47 UTC+5:30, rick wrote:
>>
>>
>>
>> On Sat, Jun 30, 2012 at 12:09 AM, rick  wrote:
>>
>>> i dont knw where to make a form...right now i am making form in model.py
>>> ,with the name Student_loginForm class..and when i make a template to
>>> run on servererror comes is
>>>
>>> TypeError at /record_system/studentid
>>>
>>> 'DeclarativeFieldsMetaclass' object is not iterable
>>>
>>>
>>
>>
>>
>>> is their any meta class made for forms?
>>>
>>>
>>
>>> thanks in advance.
>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To view this discussion on the web visit https://groups.google.com/d/**
>>> msg/django-users/-/**D5nY9Bbda1kJ
>>> .
>>> To post to this group, send email to django-users@googlegroups.com.
>>> To unsubscribe from this group, send email to django-users+unsubscribe@*
>>> *googlegroups.com .
>>> For more options, visit this group at http://groups.google.com/**
>>> group/django-users?hl=en
>>> .
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/S4ECSZH1k0cJ.
>
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: i want to display a student profile from the database and am unable to do that.plz help

2012-06-30 Thread manish girdhar
hii..thanks for your concern friendi did not able to get your
point..can you please tell this in little more briefactually i want
to enter the roll number from the user and then that number could filter
the data from the database and display the whole profile of the student..

On Sun, Jul 1, 2012 at 1:12 AM, Dennis Lee Bieber wrote:

> On Sat, 30 Jun 2012 11:54:35 -0700 (PDT), rick
>  declaimed the following in
> gmane.comp.python.django.user:
>
> >
> > this is my views.py.
> >
> > def studentid(request):
> > if request.method == 'POST':
> > form = Student_loginForm(request.POST)
> > if form.is_valid():
> > cd = form.cleaned_data
> > rollno = cd['rollno']
> > p = form.save()
> > rollno = request.POST.get('rollno')
> > rollno=int(rollno)
> > results = Add_record.objects.filter(Student_ID=rollno)
> > return HttpResponseRedirect(reverse('record_system.views.search',
> > args=(results)))
>
> Note: if args is supposed to be a tuple, you need to include a
> trailing ,
>
> args = (results, )
>
> Otherwise, each item (if there are more than one) in results is
> being treated as a separate positional argument.
>
> Other than that minor syntactic nit, one may need to see
> "Add_record"...
>
> Also, what is the expected behavior if .is_valid() comes back
> false?
>
> As coded, regardless of the .is_valid() return, you appear to fetch
> "rollno" from the request object (replacing any value saved from the
> clean data branch).
> --
> Wulfraed Dennis Lee Bieber AF6VN
> wlfr...@ix.netcom.comHTTP://wlfraed.home.netcom.com/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: am new to use forms in django..

2012-06-29 Thread manish girdhar
On Sat, Jun 30, 2012 at 12:09 AM, rick  wrote:

> i dont knw where to make a form...right now i am making form in model.py
> ,with the name Student_loginForm class..and when i make a template to
> run on servererror comes is
>
> TypeError at /record_system/studentid
>
> 'DeclarativeFieldsMetaclass' object is not iterable
>
>



> is their any meta class made for forms?
>
>

> thanks in advance.
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/D5nY9Bbda1kJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.