Userena configuration

89 views
Skip to first unread message

Bastian

unread,
Jun 24, 2012, 5:45:56 PM6/24/12
to django...@googlegroups.com
Hi,

I just installed Userena and it works fine. I would like to use the signup form where the button for the terms of service appear but I can't find how. And also when editing a user profile, there is a field called privacy, it does not really make sense in my case so I set it up to default to Closed but now I would like it to disappear from the editable fields in the profile, how can I do that?

Thanks for your help.

Kurtis Mullins

unread,
Jun 24, 2012, 6:33:21 PM6/24/12
to django...@googlegroups.com
Hey Bastian,

For the privacy portion, you'll need to create your own Form based on the Userena's user-editing form and just exclude that field.

As for the terms of service -- I'm not sure off of the bat. I could possibly take a look in the next few days if nobody jumps in with an answer. You might have good luck just reading over the userena source code. It's really well written and nicely commented.


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

Bastian

unread,
Jun 25, 2012, 6:22:31 PM6/25/12
to django...@googlegroups.com
The part about the terms of service is easy, just override that view's form in the urls:

from userena.forms import SignupFormTos

urlpatterns = patterns('',
    url(r'^accounts/signup/$','userena.views.signup', {'signup_form': SignupFormTos}),
    url(r'^accounts/', include('userena.urls')),
)

Now I'm going to try what Kurtis suggests about the privacy part.
Reply all
Reply to author
Forward
0 new messages