예제 #1
0
파일: urls.py 프로젝트: Noyer/ExmoNew
    url(r'^tasks/', include('tasks.urls')),
    url(r'^task/(\d+)/history/$', 'tasks.views.task_history', name='task_history'),

    # Отчеты
    url(r'^reports/comments/$', 'custom_comments.views.comment_list', name='comment_list'),
    url(r'^reports/clarifications/$', 'clarifications.views.clarification_list', name='clarification_list'),
    url(r'^reports/claims/$', 'claims.views.claim_list', name='claim_list'),
    url(r'^reports/monitoring/$', 'monitorings.views.monitoring_report', name='monitoring_report'),
    url(r'^reports/monitoring/(\w+)/$', 'monitorings.views.monitoring_report', name='monitoring_report_type'),
    url(r'^reports/monitoring/(\w+)/(\d+)/$', 'monitorings.views.monitoring_report',
        name='monitoring_report_finished'),

    url(r'^claim/delete/$', 'claims.views.claim_delete', name='claim_delete'),
    url(r'^toggle_comment/$', 'scores.views.toggle_comment', name='toggle_comment'),
    url(r'^ratings/$', 'monitorings.views.ratings', name='ratings'),
    url(r'^help/$', BreadcrumbsView.as_view(template_name='exmo2010/help.html',
                                            get_context_data=lambda: {'current_title': _('Help')}),
        name='help'),
    url(r'^about/$', BreadcrumbsView.as_view(template_name='exmo2010/about.html',
                                             get_context_data=lambda: {'current_title': _('About')}),
        name='about'),
    url(r'^feedback/$', 'exmo2010.views.feedback', name='feedback'),
    # AJAX-вьюха для получения списка критериев, отключенных у параметра
    url(r'^get_pc/$', 'parameters.views.get_pc', name='get_pc'),
    # AJAX-вьюха для получения кода div'а для одного вопроса (c полями).
    url(r'^get_qq/$', 'questionnaire.views.get_qq', name='get_qq'),
    # AJAX-вьюха для получения кода div'а для одного вопроса (без полей).
    url(r'^get_qqt/$', 'questionnaire.views.get_qqt', name='get_qqt'),
)
예제 #2
0
파일: urls.py 프로젝트: Noyer/ExmoNew
from exmo2010.custom_registration.views import activate_redirect, login_test_cookie, password_reset_confirm
from exmo2010.custom_registration.views import password_reset_done
from exmo2010.custom_registration.views import password_reset_redirect, register_test_cookie, resend_email
from bread_crumbs.views import BreadcrumbsView


reverse_lazy = lambda name=None, *args : lazy(reverse, str)(name, args=args)


urlpatterns = patterns('',

    url(r'^settings/$', 'accounts.views.settings', name='settings'),
    url(r'^dashboard_reset/$', 'accounts.views.user_reset_dashboard', name='user_reset_dashboard'),

    url(r'^activate/complete/$', BreadcrumbsView.as_view(
        template_name='registration/activation_complete.html',
        get_context_data=lambda: {'current_title': _('Activation complete')}
        ),
        name='registration_activation_complete'),
    # Activation keys get matched by \w+ instead of the more specific
    # [a-fA-F0-9]{40} because a bad activation key should still get to the view;
    # that way it can return a sensible "invalid key" message instead of a
    # confusing 404.
    url(r'^activate/(?P<activation_key>\w+)/$',
        activate_redirect,
       {'backend': 'exmo2010.custom_registration.backends.custom.CustomBackend'},
       name='registration_activate'),
    url(r'^register/$', register_test_cookie,
        {'backend': 'exmo2010.custom_registration.backends.custom.CustomBackend'},
        name='registration_register'),
    url(r'^register/complete/$', BreadcrumbsView.as_view(
        template_name='registration/registration_complete.html',