# Path: agora_site/agora_core/api.py



from django.conf.urls.defaults import *
from django.contrib.auth.decorators import login_required
from django.views.generic import CreateView, RedirectView, TemplateView
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy  as _
from agora_site.agora_core.views import *
from agora_site.misc.utils import RequestCreateView
from .api import v1
    url(r'^user/settings/?$', UserSettingsView.as_view(), name='user-settings'),

    url(r'^user/cancel_email_updates/?$', UserSettingsView.as_view(), name='cancel-email-updates'),

    url(r'^user/(?P<username>[\.\w]+)/?$', UserView.as_view(), name='user-view'),

    url(r'^user/(?P<username>[\.\w]+)/biography/?$', UserBiographyView.as_view(), name='user-bio'),

    url(r'^user/(?P<username>[\.\w]+)/elections/(?P<election_filter>open|participated|requested)/?$',
        UserElectionsView.as_view(), name='user-elections'),

    url(r'^(?P<username>[\.\w]+)/(?P<agoraname>[\-\.\w]+)/?$',
        AgoraView.as_view(), name='agora-view'),

    url(r'^(?P<username>[\.\w]+)/(?P<agoraname>[\-\.\w]+)/elections/(?P<election_filter>open|all|approved|requested|tallied|archived)/?$',
        AgoraElectionsView.as_view(), name='agora-elections'),

    url(r'^(?P<username>[\.\w]+)/(?P<agoraname>[\-\.\w]+)/biography/?$',
        AgoraBiographyView.as_view(), name='agora-bio'),

    url(r'^(?P<username>[\.\w]+)/(?P<agoraname>[\-\.\w]+)/admin/?$',
        AgoraAdminView.as_view(), name='agora-admin'),

    url(r'^(?P<username>[\.\w]+)/(?P<agoraname>[\-\.\w]+)/members/(?P<members_filter>members|admins|active_delegates|membership_requests|admin_membership_requests)/?$',
        AgoraMembersView.as_view(), name='agora-members'),

    url(r'^(?P<username>[\.\w]+)/(?P<agoraname>[\-\.\w]+)/comments/?$',
        AgoraCommentsView.as_view(), name='agora-comments'),

    url(r'^(?P<username>[\.\w]+)/(?P<agoraname>[\-\.\w]+)/comments/post/?$',

# Path: agora_site/agora_core/api.py



# Path: agora_site/agora_core/urls.py
from django.conf.urls.defaults import *
from django.contrib.auth.decorators import login_required
from django.views.generic import CreateView, RedirectView, TemplateView
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy  as _
from agora_site.agora_core.views import *
from agora_site.misc.utils import RequestCreateView
from .api import v1

    url(r'^user/settings/?$', UserSettingsView.as_view(), name='user-settings'),

    url(r'^user/cancel_email_updates/?$', UserSettingsView.as_view(), name='cancel-email-updates'),

    url(r'^user/(?P<username>[\.\w]+)/?$', UserView.as_view(), name='user-view'),

    url(r'^user/(?P<username>[\.\w]+)/biography/?$', UserBiographyView.as_view(), name='user-bio'),

    url(r'^user/(?P<username>[\.\w]+)/elections/(?P<election_filter>open|participated|requested)/?$',
        UserElectionsView.as_view(), name='user-elections'),

    url(r'^(?P<username>[\.\w]+)/(?P<agoraname>[\-\.\w]+)/?$',
        AgoraView.as_view(), name='agora-view'),

    url(r'^(?P<username>[\.\w]+)/(?P<agoraname>[\-\.\w]+)/elections/(?P<election_filter>open|all|approved|requested|tallied|archived)/?$',
        AgoraElectionsView.as_view(), name='agora-elections'),

    url(r'^(?P<username>[\.\w]+)/(?P<agoraname>[\-\.\w]+)/biography/?$',
        AgoraBiographyView.as_view(), name='agora-bio'),

    url(r'^(?P<username>[\.\w]+)/(?P<agoraname>[\-\.\w]+)/admin/?$',
        AgoraAdminView.as_view(), name='agora-admin'),

    url(r'^(?P<username>[\.\w]+)/(?P<agoraname>[\-\.\w]+)/members/(?P<members_filter>members|admins|active_delegates|membership_requests|admin_membership_requests)/?$',
        AgoraMembersView.as_view(), name='agora-members'),

    url(r'^(?P<username>[\.\w]+)/(?P<agoraname>[\-\.\w]+)/comments/?$',
        AgoraCommentsView.as_view(), name='agora-comments'),

    url(r'^(?P<username>[\.\w]+)/(?P<agoraname>[\-\.\w]+)/comments/post/?$',

        AgoraPostCommentView.as_view(), name='agora-comments-post'),