Re: django-registration and RegistrationFormUniqueEmail subclass

2009-08-09 Thread Léon Dignòn

Thank you

On Jul 22, 7:42 pm, Dan Harris  wrote:
> The stuff in the brackets are the optional arguments passed to the
> "register" view.
>
> You can read the documentation about the view at:
>
> http://bitbucket.org/ubernostrum/django-registration/src/b360801eae96...
>
> Alternatively you can check out the code as well.
>
> Cheers,
>
> Dan
--~--~-~--~~~---~--~~
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: django-registration and RegistrationFormUniqueEmail subclass

2009-07-22 Thread Dan Harris

The stuff in the brackets are the optional arguments passed to the
"register" view.

You can read the documentation about the view at:

http://bitbucket.org/ubernostrum/django-registration/src/b360801eae96/docs/views.txt

Alternatively you can check out the code as well.

Cheers,

Dan
--~--~-~--~~~---~--~~
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: django-registration and RegistrationFormUniqueEmail subclass

2009-07-22 Thread Léon Dignòn

How did you know about the parameter in brackets{}, what part of the
documentation have I to read to know that?
And how do you know I have to use 'form_class'?


On Jul 22, 4:59 pm, Ronghui Yu  wrote:
> You don't need to implement one, it is there in registration/forms.py
> What you need to do is configure you url like this
>
> url(r'^register/$',
>                           register,
>                           {'form_class':RegistrationFormUniqueEmail},
>                            name='registration_register'),
>
> Before that, you need to import RegistrationFormUniqueEmail
>
> from registration.forms import RegistrationFormUniqueEmail
>
> Léon Dignòn ??:
>
>
>
>
>
> > Hey folks,
>
> > I don't know how to implement the RegistrationFormUniqueEmail
> > subclass.
>
> > I have a new project and installed django-registration. I got some
> > templates wich work well. Now I want, that E-Mail addresses are
> > unique. For that in the forms-documentation is mentioned, that there
> > is a subclass called RegistrationFormUniqueEmail.
>
> > But I don't have any idea what to do with this information. I am no
> > Django guru :(
>
> > Could you hellp me with that?
>
> --
> Ronghui Yu - Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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: django-registration and RegistrationFormUniqueEmail subclass

2009-07-22 Thread Ronghui Yu
You don't need to implement one, it is there in registration/forms.py
What you need to do is configure you url like this

url(r'^register/$',
  register,
  {'form_class':RegistrationFormUniqueEmail},
   name='registration_register'),

Before that, you need to import RegistrationFormUniqueEmail

from registration.forms import RegistrationFormUniqueEmail

Léon Dignòn ??:
> Hey folks,
>
> I don't know how to implement the RegistrationFormUniqueEmail
> subclass.
>
> I have a new project and installed django-registration. I got some
> templates wich work well. Now I want, that E-Mail addresses are
> unique. For that in the forms-documentation is mentioned, that there
> is a subclass called RegistrationFormUniqueEmail.
>
> But I don't have any idea what to do with this information. I am no
> Django guru :(
>
> Could you hellp me with that?
> >
>
>   

-- 
Ronghui Yu 

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



django-registration and RegistrationFormUniqueEmail subclass

2009-07-22 Thread Léon Dignòn

Hey folks,

I don't know how to implement the RegistrationFormUniqueEmail
subclass.

I have a new project and installed django-registration. I got some
templates wich work well. Now I want, that E-Mail addresses are
unique. For that in the forms-documentation is mentioned, that there
is a subclass called RegistrationFormUniqueEmail.

But I don't have any idea what to do with this information. I am no
Django guru :(

Could you hellp me with that?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---