Ejemplo n.º 1
0
from zds.member.views import MemberList, MemberDetail, UpdateMember, UpdateGitHubToken, remove_github_token, \
    UpdateAvatarMember, UpdatePasswordMember, UpdateUsernameEmailMember, RegisterView, \
    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(),
Ejemplo n.º 2
0
from zds.member.views import MemberList, MemberDetail, UpdateMember, UpdateGitHubToken, remove_github_token, \
    UpdateAvatarMember, UpdatePasswordMember, UpdateUsernameEmailMember, RegisterView, \
    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'),
Ejemplo n.º 3
0
from zds.member.views import MemberList, MemberDetail, UpdateMember, UpdateGitHubToken, remove_github_token, \
    UpdateAvatarMember, UpdatePasswordMember, UpdateUsernameEmailMember, RegisterView, \
    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, 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'),
Ejemplo n.º 4
0
# coding: utf-8

from django.conf.urls import url

from zds.member.views import MemberList, MemberDetail, UpdateMember, UpdateAvatarMember, UpdatePasswordMember, \
    UpdateUsernameEmailMember, RegisterView, SendValidationEmailView, add_oldtuto, remove_oldtuto, modify_karma, \
    modify_profile, settings_mini_profile, member_from_ip, tutorials, articles, settings_promote, login_view, \
    logout_view, forgot_password, new_password, active_account, generate_token_account, unregister, warning_unregister

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/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'),

    # old tuto
    url(r'^profil/lier/$', add_oldtuto, name='member-add-oldtuto'),
    url(r'^profil/delier/$', remove_oldtuto, name='member-remove-oldtuto'),

    # 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'),
Ejemplo n.º 5
0
    re_path(r"^rechercher/",
            include(
                ("zds.searchv2.urls", "zds.searchv2"), namespace="search")),
    re_path(r"^munin/", include(("zds.munin.urls", ""))),
    re_path(r"^mise-en-avant/", include(("zds.featured.urls", ""))),
    re_path(r"^notifications/", include(("zds.notification.urls", ""))),
    path("",
         include(("social_django.urls", "social_django"), namespace="social")),
    re_path(r"^munin/", include(("munin.urls", "munin"))),
    re_path(r"^$", home_view, name="homepage"),
    re_path(r"^api/", include(("zds.api.urls", "zds.api"), namespace="api")),
    re_path(
        r"^oauth2/",
        include(("oauth2_provider.urls", "oauth2_provider"),
                namespace="oauth2_provider")),
    path("@<str:user_name>", MemberDetail.as_view(), name="member-detail"),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

# SiteMap URLs
urlpatterns += [
    re_path(r"^sitemap\.xml$", index_view, {"sitemaps": sitemaps}),
    re_path(
        r"^sitemap-(?P<section>.+)\.xml$",
        sitemap_view,
        {"sitemaps": sitemaps},
        name="django.contrib.sitemaps.views.sitemap",
    ),
]

if settings.DEBUG:
    import debug_toolbar