Re: How do I customize a user registration form so it only requires email and password fields?

2017-11-21 Thread sunil mishra
eate-user-sign-up-view.html) > > on making simple registration forms in Django. I'd like to make a user > registration form that requires only two fields: "Email" and "Password." No > second password field, just one. > > So far, My `views.py`

Re: How do I customize a user registration form so it only requires email and password fields?

2017-11-20 Thread Tom Tanner
tesh >> >> Sent from Yahoo Mail on Android >> <https://overview.mail.yahoo.com/mobile/?.src=Android> >> >> On Mon, Nov 20, 2017 at 8:50, Tom Tanner >> wrote: >> I'm following this [tutorial]( >> https://simpleisbetterthancomplex.com/tutor

Re: How do I customize a user registration form so it only requires email and password fields?

2017-11-20 Thread Tom Tanner
; On Mon, Nov 20, 2017 at 8:50, Tom Tanner > > wrote: > I'm following this [tutorial]( > https://simpleisbetterthancomplex.com/tutorial/2017/02/18/how-to-create-user-sign-up-view.html) > > on making simple registration forms in Django. I'd like to make a user > registratio

Re: How do I customize a user registration form so it only requires email and password fields?

2017-11-19 Thread 'Amitesh Sahay' via Django users
iew.html) on making simple registration forms in Django. I'd like to make a user registration form that requires only two fields: "Email" and "Password." No second password field, just one. So far, My `views.py` looks like this:      def register(request, template="reg

How do I customize a user registration form so it only requires email and password fields?

2017-11-19 Thread Tom Tanner
I'm following this [tutorial](https://simpleisbetterthancomplex.com/tutorial/2017/02/18/how-to-create-user-sign-up-view.html) on making simple registration forms in Django. I'd like to make a user registration form that requires only two fields: "Email" and "Passw

Re: Connection with SQL server and user registration form

2017-08-28 Thread Vineet Kothari
Models with provide you with fields in django it is madatory to use model thats why it is models. you ll have to change the configration in settings.py to allow mysql as backend database On Mon, Aug 28, 2017 at 9:57 PM, yingi keme wrote: > Okk so django has its own server set up already configu

Re: Connection with SQL server and user registration form

2017-08-28 Thread yingi keme
Okk so django has its own server set up already configured All you need to so is type in the command python manage.py runserver Yes. Django uses the MVC approach. So you have to use Models if you want to connect with your database. Yingi Kem > On 28 Aug 2017, at 3:25 PM, Gopi Devarapalli

Connection with SQL server and user registration form

2017-08-28 Thread Gopi Devarapalli
Hi everyone, I am new to django. I just want to connect with sql server. And when user submit the form i need to save the details on the sql server database table. And I am confusing that there are models that are using SQLite, is it mandatory to use Model? -- You received this message becau

Re: No Email field in the User Registration Form

2015-06-06 Thread Luis Zárate
Where is your meta class ? It is not in __init__() function, is it? if it is then problem is there. class Meta: > model = CustomUser > fields = ['email',] > del self.fields['username'] > this is wrong, use exclude in Meta class to remove fields -- "La utopía sirve para caminar" Fernando

No Email field in the User Registration Form

2015-06-03 Thread akshat
<https://lh3.googleusercontent.com/-pvHOH7DpU94/VW7i_dFeTVI/AFQ/ZdGQlRUPSrQ/s1600/register.png> Hello, I am using Django 1.8 and creating a custom user model and registration. My Custom USer registration form is this - class CustomUserCreationForm(UserCreationForm): "&qu

Re: djano user registration form and login(full example)

2013-04-17 Thread sachin
Hello again, In extended auth user model, is there any *way to handle unique fields with django forms*. Lets say I have model like: class UserProfile(models.Model): user = models.OneToOneField(User) phone_num = models.BigIntegerField(null=True, unique=True) def __unicode__(self):

Re: djano user registration form and login(full example)

2013-04-17 Thread isachin
Thanx, Btw, I solved it by creating an instance of get_profile() and then saving user and profile separately. here is the code snippet of *forms.py* if commit: profile = user.get_profile() profile.serial_num = self.cleaned_data['serial_num'] profile.save() user.sa

Re: djano user registration form and login(full example)

2013-04-16 Thread Avnesh Shakya
This error is occur when you're saving the member, not the user. When creating the member, you are not assigning the user. On Wed, Apr 17, 2013 at 10:45 AM, sachin wrote: > I m still stuck with > > Exception Type: IntegrityError > Exception Value: column user_id is not unique > > Whenev

Re: djano user registration form and login(full example)

2013-04-16 Thread sachin
I m still stuck with Exception Type: IntegrityError Exception Value: column user_id is not unique Whenever I try to save, it throws the above error. I have attached files for reference, can someone help ?? On Saturday, April 6, 2013 7:07:32 PM UTC+5:30, sachin wrote: > > Thanx Shawn,

Re: djano user registration form and login(full example)

2013-04-07 Thread Thomas Rega
Am 06.04.2013 um 16:30 schrieb Shawn Milochik: > I've seen some situations where it looked like signals are received multiple > times. > > However, you can easily fix that by checking for the existence of the user in > your function, or a try/except that handles the integrity error. or by usa

Re: djano user registration form and login(full example)

2013-04-06 Thread Shawn Milochik
I've seen some situations where it looked like signals are received multiple times. However, you can easily fix that by checking for the existence of the user in your function, or a try/except that handles the integrity error. Also, if you're starting a new project, consider upgrading to Django 1

Re: djano user registration form and login(full example)

2013-04-06 Thread sachin
Thanx Shawn, * * UserCreationForm really helped. Now I have a different problem, I'm trying to add custom feilds to *auth user *using storing-additional-information-about-users . But now I m getting th

Re: djano user registration form and login(full example)

2013-04-01 Thread Alexis Roda
Al 01/04/13 21:11, En/na sachin ha escrit: Hello, I'm just starting with Django. I want to create a user registration form which will take input like username, password, first and last name, email, address etc. using the same information I want to send a conformation mail to use

Re: djano user registration form and login(full example)

2013-04-01 Thread Shawn Milochik
Don't even worry about factories. They're for when you want a bunch of forms for the same model on the page at once. Use the UserCreationForm in django.contrib.auth.forms. It only accepts a username and password, so you can either subclass it to add the fields or make your own form and add it to y

djano user registration form and login(full example)

2013-04-01 Thread sachin
Hello, I'm just starting with Django. I want to create a user registration form which will take input like username, password, first and last name, email, address etc. using the same information I want to send a conformation mail to user and authenticate her/him. I have read Django docs,

Re: Making a User Registration form

2010-02-20 Thread Wiiboy
Ok, I think that'll work. I'll try it. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com.

Re: Making a User Registration form

2010-02-20 Thread Tim Shaffer
> Wait, but do profile fields get displayed as part of the form? Just add them to RegistrationForm and they will. Or create another form class for Profile, and use the fields from that to populate the Profile... {{ reg_form.as_p }} {{ profile_form.as_p }} On Feb 20, 10:22 am, Shawn Milochik w

Re: Making a User Registration form

2010-02-20 Thread Shawn Milochik
On Feb 20, 2010, at 10:11 AM, Wiiboy wrote: > Wait, but do profile fields get displayed as part of the form? This is Django. It can do whatever you want it to. Django-registration was specifically written to be reusable so that, for example, templates can be overridden with your own. Shawn -

Re: Making a User Registration form

2010-02-20 Thread Wiiboy
Wait, but do profile fields get displayed as part of the form? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubs

Re: Making a User Registration form

2010-02-20 Thread Tim Shaffer
Sorry... char.save() should read profile.save() On Feb 20, 9:05 am, Tim Shaffer wrote: > It's really not that difficult. You can just override the save() > method and create the Profile there. > > class RegistrationForm(forms.ModelForm): > >     class Meta: >         model = User > >     def save

Re: Making a User Registration form

2010-02-20 Thread Tim Shaffer
It's really not that difficult. You can just override the save() method and create the Profile there. class RegistrationForm(forms.ModelForm): class Meta: model = User def save(self): user = super(RegistrationForm, self).save() profile = Profile.objects.create(use

Re: Making a User Registration form

2010-02-19 Thread Wiiboy
That doesn't look like it helps a whole lot actually. I don't see where I can create a registration form including my custom profile model. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@google

Re: Making a User Registration form

2010-02-19 Thread Shawn Milochik
http://bitbucket.org/ubernostrum/django-registration/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@goo

Making a User Registration form

2010-02-19 Thread Wiiboy
Hi guys, What's the easiest way to make a user registration form, based on my own Profile model and the built-in user model? Writing my own form from scratch is looking like the most painless but time-consuming way. -- You received this message because you are subscribed to the Google G

Key error at password2 while doing custom validation with user registration form

2008-07-25 Thread tom17
This is how I solved it! my model is like this: class userForm(forms.Form): username = forms.CharField() display_name = forms.CharField() email_address = forms.EmailField() timezone = TimeZoneField() password1 = forms.CharField(widget=forms.PasswordInput)

User Registration Form

2007-07-25 Thread Jack Woods
27;s http://www.b-list.org/weblog/2006/09/02/django- tips-user-registration">User Registration form. Should I just continue working with this, or switch over to django-registration? --~--~-~--~~~---~--~~ You received this message because you are subscrib