Re: Help me with django Form

2012-01-13 Thread Python_Junkie
I believe you are mixing methods. Django has built in generic views and generic forms for example. But, you have used a template with standard (html) from syntax. Since you are doing a post, request. In your view just assign a variable to each variable in the form that you are pulling back and

Re: Help me with django Form

2012-01-13 Thread coded kid
Thanks guys! @daniel I still don't get what django doc is trying to say about ModelForm. Can you please explain further? On Jan 12, 10:30 am, Daniel Roseman wrote: > On Thursday, 12 January 2012 01:49:40 UTC, coded kid wrote: > > > Hi guys, I’ve been trying to signup using the django form I creat

Re: Help me with django Form

2012-01-12 Thread Daniel Roseman
On Thursday, 12 January 2012 01:49:40 UTC, coded kid wrote: > > Hi guys, I’ve been trying to signup using the django form I created. > Whenever I signup, the form is always saving the id no and not other > fields like names, username.pasword,email etc. Below are the codes; > In views.py: > from

Re: Help me with django Form

2012-01-11 Thread kenneth gonsalves
On Wed, 2012-01-11 at 17:49 -0800, coded kid wrote: > Please where I’ve I done something wrong? Help me out! you need to use ModelForm, not create your form in the template. Check the docs on ModelForm. -- regards Kenneth Gonsalves -- You received this message because you are subscribed to the

Re: Help me with django Form

2012-01-11 Thread Mario Gudelj
Can you provide your register model? Is it possible that you've extended the user model and that your username, password etc is getting stored inside auth_user table? On 12 January 2012 12:49, coded kid wrote: > Hi guys, I’ve been trying to signup using the django form I created. > Whenever I

Help me with django Form

2012-01-11 Thread coded kid
Hi guys, I’ve been trying to signup using the django form I created. Whenever I signup, the form is always saving the id no and not other fields like names, username.pasword,email etc. Below are the codes; In views.py: from django.shortcuts import render_to_response from django.http import HttpResp

Re: Please help me with django form 2.

2012-01-11 Thread J. Cliff Dyer
On Tue, 2012-01-10 at 23:49 -0800, coded kid wrote: > Hi guys, whenever I signup for my django form, my database is only > saving the id no and not names, username, email etc. | #sorry for > posting it like this. I'm on mobile. Okay. In my views.py, this ( | ) > means next line.@csrf_exe

Re: Please help me with django form 2.

2012-01-11 Thread 软刀
as I unflod your code I think may be you should create a Form-class like this: class RegisterForm(ModelForm): class Meta: model = Register and in your view should be: @csrf_exempt def welcome(request): if request.method=='POST': form=RegisterForm(request.POST) new_

Re: Please help me with django form 2.

2012-01-11 Thread kenneth gonsalves
On Tue, 2012-01-10 at 23:49 -0800, coded kid wrote: > names=models.CharField(max_length=50) etc. I hope you get my point? > Please help. I would suggest that you get to a computer and post the full code. Please help us to help you. -- regards Kenneth Gonsalves -- You received this message beca

Please help me with django form 2.

2012-01-10 Thread coded kid
Hi guys, whenever I signup for my django form, my database is only saving the id no and not names, username, email etc. | #sorry for posting it like this. I'm on mobile. Okay. In my views.py, this ( | ) means next line.@csrf_exempt | def welcome(request): | if request.method=='POST': | for

Re: Please help me with django form

2012-01-10 Thread kenneth gonsalves
On Tue, 2012-01-10 at 23:20 -0800, coded kid wrote: > Hi guys, whenever I signup using the django form I created, my > database is only saving the id no instead of username, email, first > name etc. Please what should I do? please show us the relevant code -- regards Kenneth Gonsalves -- You r

Please help me with django form

2012-01-10 Thread coded kid
Hi guys, whenever I signup using the django form I created, my database is only saving the id no instead of username, email, first name etc. Please what should I do? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema