Ejemplo n.º 1
0
            template_name='opportunities/campaigns.html'),
        name='campaigns'),
    url(r'^campaigns/(?P<slug>[\w-]+)/$',
        login_required(CampaignDetailView.as_view(model=Campaign,
            template_name='opportunities/campaign_detail.html')),
        name='campaign_detail'),
    url(r'^campaigns/(?P<campaign>[\w-]+)/tasks/$',
        MicroTaskListView.as_view(
            template_name='opportunities/microtask_list.html'),
        name='micro_tasks'),
    url(r'^campaigns/(?P<campaign>[\w-]+)/mytasks/$',
        login_required(MyMicroTaskListView.as_view(
            template_name='opportunities/microtasks/my_microtask_list.html')),
        name='my_micro_tasks'),
    url(r'^microtasks/(?P<slug>[\w-]+)/$',
        location_required(login_required(MicroTaskDetailView.as_view(model=MicroTask,
            template_name='opportunities/microtasks/microtask_detail.html'))),
        name='micro_task_detail'),
    url(r'^microtasks/(?P<slug>[\w-]+)/checkout/$',
        'ummeli.opportunities.views.checkout',
        name='micro_task_checkout'),
    url(r'^tomtom/', include('ummeli.opportunities.tomtom.urls')),

    #Jobs from Ummeli 1.0
    url(r'jobs/connection/apply/(?P<user_id>\d+)/jobs/(?P<pk>\d+)/$',
        'ummeli.vlive.views.connection_job',
        name='connection_job_apply'),
    url(r'apply/(?P<slug>[\w-]+)/$',
        'ummeli.opportunities.views.opportunity_apply',
        name='opportunity_apply'),

    url(r'^jobs/cron/$', 'ummeli.vlive.views.jobs_cron', name='jobs_cron'),
Ejemplo n.º 2
0
from django.conf.urls import patterns, url


from jmbo import USE_GIS
from jmbo.views import ObjectDetail
from jmbo_calendar.views import ObjectList


if USE_GIS:
    from atlas.views import location_required


urlpatterns = patterns('',

    url(
        r'^events/$',
        USE_GIS and location_required(ObjectList.as_view()) or ObjectList.as_view(),
        name='events'
    ),

    url(
        r'^event/(?P<slug>[\w-]+)/$',
        ObjectDetail.as_view(),
        name='event_object_detail'
    ),

)