from django.conf.urls import * from core.views import MainView, LoginView, LogoutView, RegistrationView, TaskCreateView, TaskListView, TaskUpdateView, \ TaskDeleteView urlpatterns = ( url(r'^login/$', LoginView.as_view(), name='login'), url(r'^logout/$', LogoutView.as_view(), name='logout'), url(r'^registration/$', RegistrationView.as_view(), name='registration'), url(r'^task-update/(?P<pk>[0-9]+)/$', TaskUpdateView.as_view(), name='task_update'), url(r'^task-list/$', TaskListView.as_view(), name='task_list'), url(r'^task-create/$', TaskCreateView.as_view(), name='task_create'), url(r'^task-delete/(?P<pk>[0-9]+)/$', TaskDeleteView.as_view(), name='task_delete'), url(r'^$', MainView.as_view(), name='mainpage'), )
TeacherUpdateView, TeachersView from django.urls import path urlpatterns = [ path('', IndexView.as_view(), name='home'), path('groups/', GroupsView.as_view(), name='groups'), path('group/create', GroupCreateView.as_view(), name='group_create'), path('group/update/<int:group_id>/', GroupUpdateView.as_view(), name='group_update'), path('teachers/', TeachersView.as_view(), name='teachers'), path('teachers/create', TeacherCreateView.as_view(), name='teachers_create'), path('teacher/update/<int:teacher_id>/', TeacherUpdateView.as_view(), name='teacher_update'), path('students/', StudentsView.as_view(), name='students'), path('student/create/', StudentCreateView.as_view(), name='student_create'), path('student/update/<int:student_id>/', StudentUpdateView.as_view(), name='student_update'), path('contact_us/', ContactUsView.as_view(), name='contact_us'), path('registration/', RegistrationView.as_view(), name='registration'), path('export/students', ExportStudentsView.as_view(), name='export_students'), ]
"""blog URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.contrib import admin from django.urls import path, include from django.views.generic import RedirectView from core.views import RegistrationView urlpatterns = [ path('admin/', admin.site.urls), path('blog/', include('core.urls')), path('', RedirectView.as_view(url='blog/', permanent=True)), path('accounts/', include('django.contrib.auth.urls')), path('accounts/signup/', RegistrationView.as_view(), name='sign-up') ]
url(r'^stats/$', TemplateView.as_view(template_name='core/stats.html'), name='stats'), # url(r'^archive/minutes/$', TemplateView.as_view(template_name='core/meeting_minutes.html'), name='about_minutes'), # Delegate to apps url(r'^matches/', include('matches.urls')), url(r'^members/', include('members.urls')), url(r'^opposition/', include('opposition.urls')), url(r'^teams/', include('teams.urls')), url(r'^venues/', include('venues.urls')), url(r'^training/', include('training.urls')), url(r'^commentary/', include('commentary.urls')), url(r'^accounts/profile/$', ProfileView.as_view(), name='user_profile'), url(r'^accounts/register/$', RegistrationView.as_view(), name='registration_register'), url(r'^accounts/', include('registration.backends.default.urls')), # WYSIWYG editor urls (used for image and file uploads) url(r'^redactor/', include('redactor.urls')), # Zinnia blog # Ref: http://docs.django-blog-zinnia.com/ url(r'^blog/', include('zinnia.urls', namespace="zinnia")), url(r'^admin/', include(admin.site.urls)), # Redirects from the old website url(r'^pages/', include('core.redirect_urls')), # Auto-completion urls
from django.urls import path from core.views import RegistrationView, ConfirmRegistrationView urlpatterns = [ path("", RegistrationView.as_view(), name="registration"), path("confirm/", ConfirmRegistrationView.as_view(), name="confirm"), ]
from django.urls import path from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView from core.views import RegistrationView, ProfileView, ChangePasswordView, EmailConfirmView urlpatterns = [ path("auth/registration/", RegistrationView.as_view(), name="registration"), path("profile/", ProfileView.as_view(), name="profile"), path("token/", TokenObtainPairView.as_view(), name="token-obtain-pair"), path("token/refresh/", TokenRefreshView.as_view(), name="token-refresh"), path("change-password/", ChangePasswordView.as_view(), name="change-password"), path("email/confirm/", EmailConfirmView.as_view(), name="email-confirm"), ]
"""reckon URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf.urls import url, include from django.contrib import admin from core.views import LoginView, RegistrationView urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^register/$', RegistrationView.as_view(), name="registration"), url(r'^story/', include('story.urls', namespace="story")), url(r'$', LoginView.as_view(), name="login"), ]
(r'^mailbox/list.html$', MessageListView.as_view( ) ), (r'^mailbox/send.html$', MessageCreateView.as_view() ), (r'^mailbox/respond,(?P<id>\d+).html$', RespondView.as_view() ), (r'^mailbox/message,(?P<id>\d+).html$', MessageView.as_view( template_name = "core/message.html" ) ), (r'^report/content,(?P<id>\d+).html$', ReportContentView.as_view( form_class = ReportContentForm, model = ReportContent, success_url = "/report/success.html" ) ), (r'^report/user,(?P<id>\d+).html$', ReportUserView.as_view( form_class = ReportUserForm, model = ReportUser, success_url = "/report/success.html" ) ), (r'^report/error.html$', AuthoredFormView.as_view( form_class = ReportErrorForm, model = ReportError, success_url = "/report/success.html" ) ), (r'^report/success.html$', TemplateView.as_view( template_name = "core/report_success.html" ) ), (r'^profile.html$', ProfileView.as_view() ), (r'^profile/edit/image$', UserFormView.as_view( form_class = PhotoForm, model = Photo, success_url = "/profile.html" ) ), (r'^profile/edit/address$', UserFormView.as_view( form_class = AddressForm, model = Address , success_url = "/profile.html" ) ), (r'^user,(?P<id>\d+).html$', PublicProfileView.as_view() ), (r'^obervers.html$', ListView.as_view( model = User, template_name = "core/users.html" ) ), (r'^observed/users.html$', ObservedUsersView.as_view() ), (r'^observing/users.html$', ObservingUsersView.as_view() ), (r'^observe/user,(?P<id>\d+)/$', ObserveUser.as_view() ), (r'^observe/content,(?P<id>\d+)/$', ObserveContent.as_view() ), (r'^history.html$', HistoryView.as_view() ), (r'^events.html$', EventsView.as_view() ), (r'^(?P<time>[0-9.]+),events.html$', EventsView.as_view( template_name = "core/cyclic_events.html" ) ), (r'^vote/(?P<id>\d+)$', VoteContentView.as_view() ), (r'^register.html$', RegistrationView.as_view() ), (r'^activate/(?P<id>\d+)/(?P<code>.*)/$', ActivationView.as_view() ), (r'^reactivate,(?P<id>\d+).html$', ReactivationView.as_view()), (r'^$', Redirection.as_view( to = "/places/")), (r'^accounts/profile/$', Redirection.as_view( to = "/places/")), (r'^comment/(?P<id>\d+)$', CommentsView.as_view() ) )