I seem to have fixed my problem but I'm not entirely sure what I did to fix it. I must have had a typo somewhere in my urls.py file as once I re-added the second entry for /accounts/register/ to include the new form_class, everything worked fine.
On Feb 16, 2:51 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > Newbie Question of the Day: > > I'm playing around with django-registration and have a question on how > to use a different form. > > James added some example subclassed forms, like > RegistrationFormTermsOfService, but for the life of me, I can't seem > to grok how I'm supposed to use those subclasses. The django- > registration source urls.py file has the following: > > url(r'^register/$', register, name='registration_register'), > > which I could easily edit to be: > > url(r'^register/$', register, {'form_class': > RegistrationFormTermsOfService}, name='registration_register'), > > and then import the RegistrationFormTermsOfService form but this > doesn't seem kosher to me. I don't want to modify the django- > registration source as that sort of defeats the purpose of having it > available outside of my project space. > > What I've been attempting to do is to over-ride the above url entry by > placing it in my site-wide urls.py but I can't get that to work. It > always goes to the default django-registration implementation when I > go to /accounts/register but I can get it to work if I use a different > URL. > > So, can anyone point me to the "proper" way to use a different form > with django-registration and still be able to use all of the same URLs > and without modifying the django-registration source? > > Thanks in advance, > > Jeff --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---