Reference

This document covers various components of pinax.apps.tribes.

Named URLs

tribe_list

Upon a GET request renter the tribes.html template with tribes and search_terms in context. Each tribe also get a member_count and a topic_count attribute assigned.

tribe_create

On GET requests render the create.html template with a tribe_form instance in context.

On POST requests process the form and create a new Tribe and add the request.user as a member of the Tribe.

your_tribes

On GET requests render the your_tribes.html template with a tribes queryset in context that contains all Tribes where request.user is a member.

tribe_detail

On GET requests render the tribe.html template with tribe, tribe_form, group, and is_member variables in context.

On POST request process that form to update the Tribe, join the Tribe or leave the Tribe.

keyword arguments:
 The slug with that identifies a a Topic. Must match: (?P<group_slug>[-\w]+).

tribe_delete

Via a POST request, delete a Tribe that request.user created previously.

keyword arguments:
 The slug with that identifies a a Topic. Must match: (?P<group_slug>[-\w]+).

Templates

Templates should be placed in an tribes/ folder at the root of one of your template search paths.

create.html

context:tribe_form

tribes.html

context:tribes, search_terms

your_tribes.html

context:tribes

tribe.html

context:group, tribe, tribe_form, is_member

Modules

pinax.apps.tribes.admin

pinax.apps.tribes.forms

pinax.apps.tribes.models

pinax.apps.tribes.templatetags.tribes_tags

pinax.apps.tribes.views