Re: Adding first_name and last_name to django registration

2012-01-28 Thread Zach
I have tried to use this tutorial but I didn't have any luck.

http://inka-labs.com/en-us/blog/2012/01/13/add-custom-backend-django-registration/



On Jan 28, 9:23 pm, Andres Reyes  wrote:
> The django.contrib.auth User model already contains first_name and
> last_name fields so you don't need a UserProfile for that.
>
> Also the view that handles the registration takes a form_class that
> parameter that you can pass in the urlconf, you would only need to
> subclass the RegistrationForm, add your fields and then pass it to
> django-registraion
>
> https://bitbucket.org/ubernostrum/django-registration/src/d073602dc10...https://bitbucket.org/ubernostrum/django-registration/src/d073602dc10...
>
> 2012/1/28 Jonathan Paugh :
>
>
>
>
>
>
>
>
>
> > contrib.auth.models.User has a get_profile() hook that allows you to add
> > extra info to a user account from your own model; however, I don't see
> > support for that in django-registration at first glance.
>
> > I'm looking at the code from
> >https://bitbucket.org/ubernostrum/django-registration/
>
> > On 01/28/2012 11:59 AM, Zach wrote:
> >> I am new to Django and have implemented the django-registration app on
> >> my website. I want users to input their first name and last name on
> >> the registration page. However, the default setting only ask users for
> >> their email address/username/password . Is there an easy way to
> >> address this?
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Django users" group.
> > To post to this group, send email to django-users@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/django-users?hl=en.
>
> --
> Andrés Reyes Monge
> armo...@gmail.com
> +(505)-8873-7217

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Adding first_name and last_name to django registration

2012-01-28 Thread Andres Reyes
The django.contrib.auth User model already contains first_name and
last_name fields so you don't need a UserProfile for that.

Also the view that handles the registration takes a form_class that
parameter that you can pass in the urlconf, you would only need to
subclass the RegistrationForm, add your fields and then pass it to
django-registraion

https://bitbucket.org/ubernostrum/django-registration/src/d073602dc103/registration/views.py#cl-76
https://bitbucket.org/ubernostrum/django-registration/src/d073602dc103/registration/forms.py#cl-21

2012/1/28 Jonathan Paugh :
> contrib.auth.models.User has a get_profile() hook that allows you to add
> extra info to a user account from your own model; however, I don't see
> support for that in django-registration at first glance.
>
> I'm looking at the code from
> https://bitbucket.org/ubernostrum/django-registration/
>
> On 01/28/2012 11:59 AM, Zach wrote:
>> I am new to Django and have implemented the django-registration app on
>> my website. I want users to input their first name and last name on
>> the registration page. However, the default setting only ask users for
>> their email address/username/password . Is there an easy way to
>> address this?
>>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Andrés Reyes Monge
armo...@gmail.com
+(505)-8873-7217

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Adding first_name and last_name to django registration

2012-01-28 Thread Jonathan Paugh
contrib.auth.models.User has a get_profile() hook that allows you to add
extra info to a user account from your own model; however, I don't see
support for that in django-registration at first glance.

I'm looking at the code from
https://bitbucket.org/ubernostrum/django-registration/

On 01/28/2012 11:59 AM, Zach wrote:
> I am new to Django and have implemented the django-registration app on
> my website. I want users to input their first name and last name on
> the registration page. However, the default setting only ask users for
> their email address/username/password . Is there an easy way to
> address this?
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Adding first_name and last_name to django registration

2012-01-28 Thread Zach
I am new to Django and have implemented the django-registration app on
my website. I want users to input their first name and last name on
the registration page. However, the default setting only ask users for
their email address/username/password . Is there an easy way to
address this?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.