Re: Registration form submission problem

2016-09-17 Thread ludovic coues
Personally, I would look at the generated HTML for the form, to see if anything is wrong. https://gist.github.com/gkrnours/6461781883e6add258d6a70ea1804b0f is how I have done a user registration view if you want to compare 2016-09-17 10:31 GMT+02:00 Timothy Steele : > below is also the views.py f

Re: Registration form submission problem

2016-09-17 Thread Timothy Steele
below is also the views.py file for the registration form def register_page(request): if request.method=="POST": form=RegistrationForm(request.POST) if form.is_valid(): user=User.objects.create_user( username=form.clean_data['username'],

Registration form submission problem

2016-09-17 Thread Timothy Steele
first i created a Login form and an error message show as *CSRF token missing or incorrect.* I was able to work it out by adding* {% csrf_token %}* int the login form and adding the import file in the views as from *django.template import Context,RequestContext.* But when i created a registrat

Re: form submission problem

2008-10-09 Thread Stephen Cheng
Sorry about the silly question. This is resolved. All are documented: http://docs.djangoproject.com/en/dev/ref/forms/validation/#using-validation-in-practice Thanks for your help! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: form submission problem

2008-10-09 Thread Stephen Cheng
Hi Malcolm Sorry, I didn't express clearly because I am also not sure where the problem is. I figure out that the database encoding is a problem. I use postgres8.2 and I checked that its encoding is SQL_ASCII, that's the problem. I have corrected this and now there is no problem with saving corr

Re: form submission problem

2008-10-09 Thread Malcolm Tredinnick
On Thu, 2008-10-09 at 04:57 -0700, Stephen Cheng wrote: > I defined a field title in model the max length is 30 > title=models.CharField("Title",max_length=30) > > while after I key in none - english characters, eg, Chinese and submit > the form, it [database] can only take 10 Chinese characters

form submission problem

2008-10-09 Thread Stephen Cheng
I defined a field title in model the max length is 30 title=models.CharField("Title",max_length=30) while after I key in none - english characters, eg, Chinese and submit the form, it [database] can only take 10 Chinese characters,otherwise raise an exception. I also use an validation rule in th