Ejemplo n.º 1
0
def make_meeting_urls(kwargs):
    return [
        url(r'^$', MeetingsView.as_view(), name='list', kwargs=kwargs),
        url(r'^(?P<pk>\d+)/$',
            MeetingDetailView.as_view(),
            name='detail',
            kwargs=kwargs),
        url(r'^(?P<pk>\d+)/mail-details/$',
            MeetingMailView.as_view(),
            name='mail-details',
            kwargs=kwargs),
        url(r'^create/$',
            MeetingCreateView.as_view(),
            name='create',
            kwargs=kwargs),
        url(r'^past/$', PastMeetingsView.as_view(), name='past',
            kwargs=kwargs),
        url(r'^update/(?P<pk>\d+)/$',
            MeetingUpdateView.as_view(),
            name='update',
            kwargs=kwargs),
        url(r'^delete/(?P<pk>\d+)/$',
            MeetingDeleteView.as_view(),
            name='delete',
            kwargs=kwargs),
        url(r'^publish/(?P<pk>\d+)/$',
            MeetingPublishView.as_view(),
            name='publish',
            kwargs=kwargs),
        url(r'^download-card/(?P<pk>\d+)/$',
            MeetingDownloadCardView.as_view(),
            name='download-card',
            kwargs=kwargs),
        url(r'^download-card/(?P<pk>\d+)/$',
            MeetingDownloadCardView.as_view(),
            name='download-card',
            kwargs=kwargs),
    ]
Ejemplo n.º 2
0
from django.conf.urls import patterns, include, url
from django.contrib import admin
from meetings.views import MeetingCreateView
import communities.views

admin.autodiscover()

urlpatterns = patterns('',

    url(r'^$', communities.views.CommunityList.as_view(), name='home'),

    url(r'^(?P<pk>\d+)/', include('communities.urls')),

    url(r'^(?P<community_id>\d+)/upcoming/close/$',
            MeetingCreateView.as_view(),
            name="upcoming_close"),

    url(r'^(?P<community_id>\d+)/members/', include('users.urls')),
    url(r'^(?P<community_id>\d+)/issues/', include('issues.urls')),
    url(r'^(?P<community_id>\d+)/history/', include('meetings.urls')),

    url(r'^login/$', 'django.contrib.auth.views.login', {
                                         'template_name': 'login.html'},
                                                         name="login"),

    url(r'^logout/$', 'django.contrib.auth.views.logout_then_login',
                                name="logout"),

    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^admin/', include(admin.site.urls)),
Ejemplo n.º 3
0
from users.models import CODE_LENGTH
from users.views import AcceptInvitationView
import communities.views

admin.autodiscover()

urlpatterns = patterns(
    '',
    url(r'^$', communities.views.LandingPage.as_view(), name='landing'),
    url(r'^communities/$',
        communities.views.CommunityList.as_view(),
        name='home'),
    url(r'^about/$', communities.views.About.as_view(), name='about'),
    url(r'^(?P<pk>\d+)/', include('communities.urls')),
    url(r'^(?P<community_id>\d+)/upcoming/close/$',
        MeetingCreateView.as_view(),
        name="upcoming_close"),
    url(r'^(?P<community_id>\d+)/members/', include('users.urls')),
    url(r'^(?P<community_id>\d+)/issues/', include('issues.urls')),
    url(r'^(?P<community_id>\d+)/history/', include('meetings.urls')),
    url(r'^login/$',
        'ocd.views.login_user', {'template_name': 'login.html'},
        name="login"),
    url(r'^logout/$',
        'django.contrib.auth.views.logout',
        {'next_page': reverse_lazy('home')},
        name="logout"),
    url(r'^invitation/(?P<code>[a-z0-9]{%d})/$' % CODE_LENGTH,
        AcceptInvitationView.as_view(),
        name="accept_invitation"),
    url(r'^user/password/reset/$',
Ejemplo n.º 4
0
from django.conf import settings
from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
from django.contrib import admin
from meetings.views import MeetingCreateView
from users.models import CODE_LENGTH
from users.views import AcceptInvitationView
import communities.views

admin.autodiscover()

urlpatterns = patterns(
    "",
    url(r"^$", communities.views.CommunityList.as_view(), name="home"),
    url(r"^(?P<pk>\d+)/", include("communities.urls")),
    url(r"^(?P<community_id>\d+)/upcoming/close/$", MeetingCreateView.as_view(), name="upcoming_close"),
    url(r"^(?P<community_id>\d+)/members/", include("users.urls")),
    url(r"^(?P<community_id>\d+)/issues/", include("issues.urls")),
    url(r"^(?P<community_id>\d+)/history/", include("meetings.urls")),
    url(r"^login/$", "django.contrib.auth.views.login", {"template_name": "login.html"}, name="login"),
    url(r"^logout/$", "django.contrib.auth.views.logout", {"next_page": "/"}, name="logout"),
    url(
        r"^invitation/(?P<code>[a-z0-9]{%d})/$" % CODE_LENGTH, AcceptInvitationView.as_view(), name="accept_invitation"
    ),
    url(r"^admin/doc/", include("django.contrib.admindocs.urls")),
    url(r"^admin/", include(admin.site.urls)),
) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)