Example #1
0
        GenericCourseView.as_view(template_name="administration/stats.html"),
        name='reports'),

    # Authentication
    url(r'^logout/',
        'django.contrib.auth.views.logout', {'next_page': '/'},
        name='timtec_logout'),
    url(r'^dashboard/', TemplateView.as_view(template_name="dashboard.html")),
    url(r'^forum/',
        TemplateView.as_view(template_name="forum.html"),
        name='forum'),
    url(r'^thread/', TemplateView.as_view(template_name="forum-thread.html")),
    url(r'^login/', TemplateView.as_view(template_name="login.html")),
    url(r'^register/', TemplateView.as_view(template_name="register.html")),
    url(r'^flatpage/', TemplateView.as_view(template_name="flatpage.html")),
    url(r'^profile/edit/?$', ProfileEditView.as_view(), name="profile_edit"),
    url(r'^profile/edit/social/?$',
        UserSocialAccountCreateView.as_view(),
        name="profile_edit_add_social"),
    url(r'^profile/edit/social/(?P<pk>[1-9][0-9]*)/?$',
        UserSocialAccountDeleteView.as_view(),
        name="profile_edit_delete_social"),
    url(r'^profile/(?P<username>[\w.+-]+)?/?$',
        ProfileView.as_view(),
        name="profile"),

    # The django-allauth
    url(r'^accounts/', include('allauth.urls')),
    url(r'^api/user_search/?$', UserSearchView.as_view(), name='user_search'),
    url(r'^api/student_search/?$',
        StudentSearchView.as_view(),
Example #2
0
    # Notes
    url(r'^notes/(?P<username>[\w.+-]+)?$', UserNotesView.as_view(), name='user_notes'),
    url(r'^course/(?P<course_slug>[-a-zA-Z0-9_]+)/mynotes/$', CourseNotesView.as_view(), name='user_course_notes'),

    # Messages
    url(r'^course/(?P<course_slug>[-a-zA-Z0-9_]+)/messages/$', GenericCourseView.as_view(template_name="messages.html"), name='messages'),
    url(r'^course/(?P<course_slug>[-a-zA-Z0-9_]+)/message/(?P<message_id>[1-9][0-9]*)$', GenericCourseView.as_view(template_name="message.html"), name='message_detail'),

    # Reports
    url(r'^course/(?P<course_slug>[-a-zA-Z0-9_]+)/reports/$', GenericCourseView.as_view(template_name="administration/stats.html"), name='reports'),

    # Authentication
    url(r'^logout/', 'django.contrib.auth.views.logout', {'next_page': '/'}, name='timtec_logout'),

    url(r'^profile/edit/?$', ProfileEditView.as_view(), name="profile_edit"),
    url(r'^profile/(?P<username>[\w.+-]+)?/?$', ProfileView.as_view(), name="profile"),

    # The django-allauth
    url(r'^accounts/', include('allauth.urls')),
    url(r'^api/user_search/?$', UserSearchView.as_view(), name='user_search'),
    url(r'^api/student_search/?$', StudentSearchView.as_view(), name='student_search'),

    url(r'^pages(?P<url>.*)$', FlatpageView.as_view(), name='flatpage'),

    # The django-rosetta
    url(r'^rosetta/', include('rosetta.urls')),

    url(r'^markdown/', include('django_markdown.urls')),

)
Example #3
0
from django.urls import path
from accounts.views import ProfilesListView, ProfileCreateView, ProfileDetailView, ProfileEditView, ProfileDeleteView

app_name = 'profiles'

urlpatterns = [
    path('', ProfilesListView.as_view(), name='list'),
    path('add/', ProfileCreateView.as_view(), name='add'),
    path('edit/<item_id>', ProfileEditView.as_view(), name='edit'),
    path('show/<item_id>', ProfileDetailView.as_view(), name='show'),
    path('delete/<item_id>', ProfileDeleteView.as_view(), name='delete'),
]
Example #4
0
    ProfileEditView,
)
from django.contrib.auth.views import (
    LogoutView, )

app_name = 'accounts'

urlpatterns = [
    path('register/', RegisterView.as_view(), name='register'),
    path('login/', CustomLoginView.as_view(), name='login'),
    path('logout/', LogoutView.as_view(), name='logout'),
    path('change-password/',
         CustomPasswordChangeView.as_view(),
         name='change-password'),
    path('forget-password/',
         CustomPasswordResetView.as_view(),
         name='forget-password'),
    path('password-reset-confirm/<str:uidb64>/<str:token>/',
         CustomPasswordResetConfirmView.as_view(),
         name='password-reset-confirm'),
    path('user-profile/<int:pk>/',
         UserProfileView.as_view(),
         name='user-profile'),
    path('user-profile-redirect/',
         UserProfileRedirectView.as_view(),
         name='user-profile-redirect'),
    path('edit-profile/<int:pk>/',
         ProfileEditView.as_view(),
         name='edit-profile'),
]
Example #5
0
File: urls.py Project: Enois/timtec
    url(r'^mentores', TeachersView.as_view(), name='teachers'),

    # Course Material
    url(r'^curso/(?P<slug>[-a-zA-Z0-9_]+)/material/file_upload/$', FileUploadView.as_view(), name='file_upload'),
    url(r'^curso/(?P<slug>[-a-zA-Z0-9_]+)/material/$', CourseMaterialView.as_view(), name='course_material'),

    # Notes
    url(r'^notas/(?P<username>[\w.+-]+)?$', UserNotesView.as_view(), name='user_notes'),
    url(r'^curso/(?P<course_slug>[-a-zA-Z0-9_]+)/minhas-notas/$', CourseNotesView.as_view(), name='user_course_notes'),

    # Authentication
    url(r'^entrar/', CustomLoginView.as_view(), name='timtec_login'),
    url(r'^sair/', 'django.contrib.auth.views.logout', {'next_page': '/'}, name='timtec_logout'),

    # Profiles
    url(r'^perfil/editar/?$', ProfileEditView.as_view(), name="profile_edit"),
    url(r'^perfil/(?P<username>[\w.+-]+)?/?$', EnoisProfileView.as_view(), name="profile"),

    # The django-allauth
    url(r'^accounts/', include('allauth.urls')),

    # The django-rosetta
    url(r'^rosetta/', include('rosetta.urls')),

    url(r'^pages/', include('django.contrib.flatpages.urls')),

    url(r'^markdown/', include('django_markdown.urls')),
)

if settings.TWITTER_USER != '':
    from core.views import TwitterApi
Example #6
0
urlpatterns = [
    path('admin/', admin.site.urls),
    path('', include('pazar.urls')),
    path('blog/', include('blog.urls')),
    path('ckeditor/', include('ckeditor_uploader.urls')),
    path('account/', include('accounts.urls')),
    path('accounts/', include('django.contrib.auth.urls')),
    path('sent/', activation_sent_view, name="activation_sent"),
    path('activate/<slug:uidb64>/<slug:token>/', activate, name='activate'),
    path('accounts/', include('allauth.urls')),
    path('change-password/',
         auth_views.PasswordChangeView.as_view(
             template_name='pazar/change-password.html', success_url='home'),
         name='change-password'),
    path('edit-profile/', ProfileEditView.as_view(), name="edit-profile"),
    path('profile/<int:id>/<slug:slug>', ProfileView.as_view(),
         name="profile"),
    path('password_change/',
         auth_views.PasswordChangeView.as_view(),
         name="password_change"),
    path('password_change/done',
         auth_views.PasswordChangeDoneView.as_view(),
         name="password_change_done"),
    path('password_reset/',
         auth_views.PasswordResetView.as_view(),
         name='password_reset'),
    path('password_reset/done/',
         auth_views.PasswordResetDoneView.as_view(),
         name='password_reset_done'),
    path('reset/<uidb64>/<token>/',