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
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
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
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
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
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
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
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_
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
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
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
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
12 matches
Mail list logo