DragonSlayre
unread,Dec 18, 2008, 5:21:31 PM12/18/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
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.