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