Пример #1
0
    generate_token_account, unregister, warning_unregister, BannedEmailProvidersList, NewEmailProvidersList, \
    AddBannedEmailProvider, remove_banned_email_provider, check_new_email_provider, MembersWithProviderList, \
    HatsSettings, RequestedHatsList, HatRequestDetail, add_hat, remove_hat, solve_hat_request, HatsList, HatDetail, \
    SolvedHatRequestsList

urlpatterns = [
    # list
    url(r'^$', MemberList.as_view(), name='member-list'),

    # details
    url(r'^voir/(?P<user_name>.+)/$',
        MemberDetail.as_view(),
        name='member-detail'),

    # modification
    url(r'^parametres/profil/$', UpdateMember.as_view(), name='update-member'),
    url(r'^parametres/github/$',
        UpdateGitHubToken.as_view(),
        name='update-github'),
    url(r'^parametres/github/supprimer/$',
        remove_github_token,
        name='remove-github'),
    url(r'^parametres/profil/maj_avatar/$',
        UpdateAvatarMember.as_view(),
        name='update-avatar-member'),
    url(r'^parametres/compte/$',
        UpdatePasswordMember.as_view(),
        name='update-password-member'),
    url(r'^parametres/user/$',
        UpdateUsernameEmailMember.as_view(),
        name='update-username-email-member'),
Пример #2
0
    HatDetail,
    SolvedHatRequestsList,
    CreateProfileReportView,
    SolveProfileReportView,
)

urlpatterns = [
    # list
    re_path(r"^$", MemberList.as_view(), name="member-list"),
    # details
    re_path(r"^voir/(?P<user_name>.+)/$",
            MemberDetail.as_view(),
            name="member-detail"),
    # modification
    re_path(r"^parametres/profil/$",
            UpdateMember.as_view(),
            name="update-member"),
    re_path(r"^parametres/github/$",
            UpdateGitHubToken.as_view(),
            name="update-github"),
    re_path(r"^parametres/github/supprimer/$",
            remove_github_token,
            name="remove-github"),
    re_path(r"^parametres/profil/maj_avatar/$",
            UpdateAvatarMember.as_view(),
            name="update-avatar-member"),
    re_path(r"^parametres/compte/$",
            UpdatePasswordMember.as_view(),
            name="update-password-member"),
    re_path(r"^parametres/user/$",
            UpdateUsernameEmailMember.as_view(),
Пример #3
0
    SendValidationEmailView, modify_karma, modify_profile, settings_mini_profile, member_from_ip, \
    settings_promote, login_view, logout_view, forgot_password, new_password, activate_account, \
    generate_token_account, unregister, warning_unregister, BannedEmailProvidersList, NewEmailProvidersList, \
    AddBannedEmailProvider, remove_banned_email_provider, check_new_email_provider, MembersWithProviderList, \
    HatsSettings, RequestedHatsList, HatRequestDetail, add_hat, remove_hat, solve_hat_request, HatsList, HatDetail, \
    SolvedHatRequestsList

urlpatterns = [
    # list
    url(r'^$', MemberList.as_view(), name='member-list'),

    # details
    url(r'^voir/(?P<user_name>.+)/$', MemberDetail.as_view(), name='member-detail'),

    # modification
    url(r'^parametres/profil/$', UpdateMember.as_view(), name='update-member'),
    url(r'^parametres/github/$', UpdateGitHubToken.as_view(), name='update-github'),
    url(r'^parametres/github/supprimer/$', remove_github_token, name='remove-github'),
    url(r'^parametres/profil/maj_avatar/$', UpdateAvatarMember.as_view(), name='update-avatar-member'),
    url(r'^parametres/compte/$', UpdatePasswordMember.as_view(), name='update-password-member'),
    url(r'^parametres/user/$', UpdateUsernameEmailMember.as_view(), name='update-username-email-member'),

    # moderation
    url(r'^profil/karmatiser/$', modify_karma, name='member-modify-karma'),
    url(r'^profil/modifier/(?P<user_pk>\d+)/$', modify_profile, name='member-modify-profile'),
    url(r'^parametres/mini_profil/(?P<user_name>.+)/$', settings_mini_profile, name='member-settings-mini-profile'),
    url(r'^profil/multi/(?P<ip_address>.+)/$', member_from_ip, name='member-from-ip'),

    # email providers
    url(r'^fournisseurs-email/nouveaux/$', NewEmailProvidersList.as_view(), name='new-email-providers'),
    url(r'^fournisseurs-email/nouveaux/verifier/(?P<provider_pk>\d+)/$', check_new_email_provider,
Пример #4
0
    generate_token_account, unregister, warning_unregister, BannedEmailProvidersList, NewEmailProvidersList, \
    AddBannedEmailProvider, remove_banned_email_provider, check_new_email_provider, MembersWithProviderList, \
    HatsSettings, RequestedHatsList, HatRequestDetail, add_hat, remove_hat, solve_hat_request, HatsList, HatDetail, \
    SolvedHatRequestsList, CreateProfileReportView, SolveProfileReportView

urlpatterns = [
    # list
    re_path(r'^$', MemberList.as_view(), name='member-list'),

    # details
    re_path(r'^voir/(?P<user_name>.+)/$',
            MemberDetail.as_view(), name='member-detail'),

    # modification
    re_path(r'^parametres/profil/$',
            UpdateMember.as_view(), name='update-member'),
    re_path(r'^parametres/github/$',
            UpdateGitHubToken.as_view(), name='update-github'),
    re_path(r'^parametres/github/supprimer/$',
            remove_github_token, name='remove-github'),
    re_path(r'^parametres/profil/maj_avatar/$',
            UpdateAvatarMember.as_view(), name='update-avatar-member'),
    re_path(r'^parametres/compte/$', UpdatePasswordMember.as_view(),
            name='update-password-member'),
    re_path(r'^parametres/user/$', UpdateUsernameEmailMember.as_view(),
            name='update-username-email-member'),

    # moderation
    re_path(r'^profil/signaler/(?P<profile_pk>\d+)/$', CreateProfileReportView.as_view(), name='report-profile'),
    re_path(r'^profil/resoudre/(?P<alert_pk>\d+)/$', SolveProfileReportView.as_view(), name='solve-profile-alert'),
    re_path(r'^profil/karmatiser/$', modify_karma, name='member-modify-karma'),