Hi,

I'm currently working with django-registration, and have the following
url pattern (it's included from my other url pattern):

 url(r'^register/$',
                           register,
                           name='registration_register',
                           ),

This calls a view:

def register(request, success_url=None,
             form_class=RegistrationForm, profile_callback=None,
             template_name='registration/registration_form.html',
             extra_context=None):

My Question is, how do I pass the register method the extra_context ?

What I'm trying to do is something like this:
 url(r'^register/$',
                           register,
                           name='registration_register',
                           extra_context = {'section' : 'main'},
                           ),

But this gives me an error 'url() got an unexpected keyword argument
'extra_context'.  This seems like it'd be a simple little thing, but I
haven't seen any examples online about how you pass in the extra
parameters with named urls.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to