Re: please help me,how to create registration model
maybe you need similar this
from django.contrib.auth.models import Userfrom django.contrib.auth.forms import UserCreationForm
class UserCreateForm(UserCreationForm):username = forms.CharField(label="Username", max_length=30)email = forms.EmailField(required=True)class Meta:model = Userfields = ("username", "first_name","last_name","email", "password1", "password2")def save(self, commit=True):user = super(UserCreateForm, self).save(commit=False)user.email = self.cleaned_data["email"]if commit:user.save()return userCheers
On Fri, Feb 15, 2013 at 1:06 AM, Sergiy Khohlov <skhohlov@gmail.com> wrote:
all are already doneTake a look at the builded form :
https://github.com/django/django/blob/master/django/contrib/auth/forms.py
On Fri, Feb 15, 2013 at 8:36 AM, Avnesh Shakya <avnesh.nitk@gmail.com> wrote:
thanks alot...tell me about html form, i have created a registration.html form. now i want to store these things through its page.. so how can i do? i m nervous because i m beginner.. plz tell me ... if any site is available for it plz suggest me...
On Fri, Feb 15, 2013 at 11:49 AM, Sergiy Khohlov <skhohlov@gmail.com> wrote:
On Fri, Feb 15, 2013 at 7:23 AM, Avnesh Shakya <avnesh.nitk@gmail.com> wrote:please help me,i m beginner i m creating my registration model but how can i write password field?thanks in advance...--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home