Hi all, I have three forms and none of these forms pass is_valid()
test when I test in intrepeter. kindly help for point out what's
problem with my forms. thank you.
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
from django import forms
from dj
te didn't return an HttpResponse
object."
I have google it and by example provided it relate to indentation
matters when put template renderer. but I think I don't have any
problem with that. please put some light and really appreciate for any
kind help. Thank you.
regards,
-vier
dear all,
I have problem when using delete_object generic views, the code always
raise error delete_object() takes at least 3 non-keyword arguments (0
given) but I think I have provided 4 arguments. my code as per below.
Thank you for any kind help.
views.py :
def delete_profile(request):
use
te_object'{'form_class':'fintoo.apps.authorization.forms.UserProfileForm'}),
)
but it always raise error 'str' object has no attribute '_meta'
really appreciate for your kind help
thank you
regards,
-vierda-
--~--~-~--~~~---~
form.cleaned_data['email'],
password = form.cleaned_data['password1']
)
return render_to_response('success.html')
else:
form = RegistrationForm()
variables = RequestContext (request,{'form':form})
return render_to_respo
ml', {'username': username,
'password' : password})
the login.html and success.html remain the same
once again thanks man and have a nice day :)
regards,
-vierda-
On Dec 16, 8:50 am, brandonh wrote:
> I just use the get method on the POST object.
>
> username =
a-
On Dec 15, 9:06 am, Matias wrote:
> Hello,
>
> You should check by which method was called your view.
> something like
>
> if request.method == "POST":
> #now you can use request.POST
> else:
> #just show the template
>
> Hope that help
ndly help and thank you in advance
On Dec 6, 12:05 am, "Ronny Haryanto" wrote:
> On Sat, Dec 6, 2008 at 2:42 PM, vierda wrote:
> > today I try to make login page with follow example code in
> > djangoproject (user authentication chapter), code as following below :
>
&g
('invalid login')
the above code always shows MultiValueDictKeyError with exception
value "Key 'username' not found in ".
please give me clue to resolve this problem. Thank you in advance
regards,
-vierda-
--~--~-~--~~~---~--~~
You received
Dear Karen,
thanks for your clarification. it clear now. Ok I will try to make
the Comment model and see how it code works.
regards,
-vierda-
On Dec 6, 8:47 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Fri, Dec 5, 2008 at 4:10 PM, vierda <[EMAIL PROTECTED]>
lp to clarify me, thank you.
On Dec 5, 10:27 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Fri, Dec 5, 2008 at 9:53 AM, vierda <[EMAIL PROTECTED]> wrote:
>
> > Dear all,
>
> > I'm newbie in Django and have started study since two weeks. I tried
ne
c.save()
request.session['has_commented'] = True
return HttpResponse('Thanks for your comment!')
-vierda-
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django use
12 matches
Mail list logo