示例#1
0
文件: urls.py 项目: pystars/bumerang
        name='activate-account'),

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

    url(r'^profile/$',
        login_required(ProfileView.as_view()),
        name='profile-self'),

    url(r'^edit/$',
        login_required(ProfileInfoEditView.as_view()),
        name='profile-edit'),

    url(r'^edit-avatar/$',
        login_required(ProfileAvatarEditView.as_view()),
        name='profile-edit-avatar'),

    # url(r'^edit-cover/$',
    #     login_required(ProfileCoverEditView.as_view()),
    #     name='profile-edit-cover'),

    url(r'^edit-resume/$',
        login_required(ProfileUpdateView.as_view(
            form_class=ProfileResumeEditForm)),
        name='profile-edit-resume'),

    url(r'^edit-settings/$',
        login_required(ProfileSettingsEditView.as_view()),
        name='profile-edit-settings'),
示例#2
0
        name='activate-account'),

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

    url(r'^profile/$',
        login_required(ProfileView.as_view()),
        name='profile-self'),

    url(r'^edit/$',
        login_required(ProfileInfoEditView.as_view()),
        name='profile-edit'),

    url(r'^edit-avatar/$',
        login_required(ProfileAvatarEditView.as_view(
            template_name_suffix='_edit_avatar')),
        name='profile-edit-avatar'),

    url(r'^edit-resume/$',
        login_required(ProfileUpdateView.as_view(
            form_class=ProfileResumeEditForm)),
        name='profile-edit-resume'),

    url(r'^edit-settings/$',
        login_required(ProfileSettingsEditView.as_view()),
        name='profile-edit-settings'),

    url(r'^edit-faculties/$',
        login_required(
            FormsetUpdateView.as_view(model=Faculty, form=FacultyForm)),
        name='profile-edit-faculties'),