from api.views.business_views import BusinessList, BusinessDetail, SearchBusinessLists from api.views.review_views import ReviewList # Create a router and register our viewsets with it. router = DefaultRouter() # router.register(r'businesses', BusinessViewSet) # router.register(r'reviews', views.ReviewViewSet) router.register(r'users', UserViewSet) # The API URLs are now determined automatically by the router. urlpatterns = [ url(r'^', include(router.urls)), # reviewing business url(r'^businesses/$', BusinessList.as_view(), name="businesses"), url(r'^businesses/(?P<pk>[0-9]+)/$', BusinessDetail.as_view(), name="business"), url(r'^businesses/(?P<id>[0-9]+)/reviews/$', ReviewList.as_view(), name="reviews"), # searching url(r'^businesses/search/$', SearchBusinessLists.as_view()), # authuentication urls url(r'^auth/', include('rest_auth.urls')), url(r'^auth/register/', include('rest_auth.registration.urls')), path('registration/', RegisterView.as_view(), name='account_signup'), re_path(r'^account-confirm-email/', VerifyEmailView.as_view(), name='account_email_verification_sent'), re_path(r'^account-confirm-email/(?P<key>[-:\w]+)/$', VerifyEmailView.as_view(), name='account_confirm_email'), ]
from django.urls import path, re_path from rest_auth.registration.views import VerifyEmailView from rest_auth.views import LoginView from apps.users.views import RegistrationView urlpatterns = [ path('signup/', RegistrationView.as_view(), name='account_signup'), path('sigin/', LoginView.as_view(), name="sigin"), re_path(r'^account-confirm-email/(?P<key>[-:\w]+)/$', VerifyEmailView.as_view(), name='account_confirm_email'), ]
LoginView, FacebookLogin, InstagramLogin, GoogleLogin, RegisterView, ConfirmEmailView, PasswordResetView ) urlpatterns = [ ########################### # REGISTRATION URLS ########################### path('registration/', RegisterView.as_view(), name='rest_register'), # url for verifying email path('registration/verify-email/', VerifyEmailView.as_view(), name='rest_verify_email'), # url for account confirmation path('registration/account-confirm-email/<str:key>', ConfirmEmailView.as_view(), name='account_confirm_email'), # url for informing the user that the verification in sent path("registration/confirm-email/", email_verification_sent, name="account_email_verification_sent"), ########################### # AUTHENTICATION URLS ########################### path('login/', LoginView.as_view(), name='rest_login'), path('logout/', LogoutView.as_view(), name='rest_logout'), ########################### # PASSWORD HANDLING URLS ########################### path('password/reset/', PasswordResetView.as_view(), name='rest_password_reset'),
from django.conf.urls import include from django.urls import path from rest_auth.registration.views import VerifyEmailView from rest_auth.views import (PasswordResetView, PasswordResetConfirmView) from allauth.account.views import ConfirmEmailView from . import views as qv urlpatterns = [ path('verify-email/', VerifyEmailView.as_view(), name='account_email_verification_sent'), path('signup/account-confirm-email/<key>/', ConfirmEmailView.as_view(), name='account_confirm_email'), path('', include('rest_auth.urls')), path('signup/', include('rest_auth.registration.urls')), path('google/', qv.GoogleLogin.as_view(), name='google_login'), path('password/reset/', PasswordResetView.as_view(), name='password_reset'), path('password/reset/confirm/<uidb64>/<token>/', PasswordResetConfirmView.as_view(), name='password_reset_confirm'), # path('resend_confirmation_email/', qv.EmailConfirmation.as_view(), name='resend-email-confirmation'), # To get the authenticated user's own object, its provided by djago-rest-auth using this route: 'user/' path('users/', qv.ListUsersView.as_view(), name='list-users'), path("users/<slug:slug>/", qv.UserRetriveAPIView.as_view(), name="users-detail"), path("users/<slug:slug>/follow/", qv.FollowAUserView.as_view(), name="users-follow"), path("users/<slug:slug>/unfollow/", qv.UnFollowAUserView.as_view(), name="users-unfollow"), path("users/<slug:slug>/followers/", qv.UserFollowerView.as_view(), name="user-followers"), path("users/<slug:slug>/following/", qv.UserFollowingView.as_view(), name="user-following"), path("profile/<int:pk>/", qv.ProfileRetriveUpdateAPIView.as_view(), name="profile-detail"), path("profile/<int:pk>/skills/", qv.ProfileSkillRUAPIView.as_view(), name="profile-skill-edit"), path("profile/<int:pk>/photo/", qv.ProfilePhotoRUAPIView.as_view(), name="profile-photo-edit"), path("skills/", qv.SkillListAPIView.as_view(), name="skills"),
user_router = UserRouter() router = SimpleRouter() user_router.register(r'user', UserViewSet) router.register(r'social_account', UserSocialAuthViewSet) router.register(r'social_person', SocialPersonViewSet) urlpatterns = [ url(r'^', include('django.contrib.auth.urls')), url(r'^admin/', admin.site.urls), url(r'^api/auth/registration/', RegisterView.as_view(), name='register_view'), url(r'^api/auth/login/$', rest_auth.views.LoginView.as_view(), name='rest_login'), url(r'^api/auth/logout/$', rest_auth.views.LogoutView.as_view(), name='rest_logout'), url(r'^api/auth/confirm_email/$', VerifyEmailView.as_view()), url( r'^api/auth/password/confirm/$', rest_auth.views.PasswordResetConfirmView.as_view(), name='password_reset_confirm' ), url(r'^api/auth/password/reset/$', rest_auth.views.PasswordResetView.as_view()), url(r'^api/auth/password/change/$', PasswordChangeView.as_view()), url(r'^api/social_auth/login/social/token/(?:(?P<provider>[a-zA-Z0-9_-]+)/?)?$', SocialAuthView.as_view(), name='login_social_token'), url(r'^api/', include(user_router.urls)), url(r'^api/', include(router.urls))
) from rest_auth.registration.views import VerifyEmailView from rest_auth.registration import urls as registration_urls from allauth.account.views import ConfirmEmailView, EmailVerificationSentView import nested_admin.urls import django_prometheus.urls from qabel_web_theme import urls as theme_urls from dispatch_service.views import dispatch # Import the module somewhere, so it can register itself. import qabel_provider.monitoring rest_auth_register_urls = [ url(r'^$', views.PasswordPolicyRegisterView.as_view(), name='rest_register'), url(r'^verify-email/$', VerifyEmailView.as_view(), name='rest_verify_email'), ] rest_auth_urls = [ url(r'^password/reset/$', PasswordResetView.as_view(), name='rest_password_reset'), url(r'^password/reset/confirm/$', PasswordResetConfirmView.as_view(), name='rest_password_reset_confirm'), url(r'^login/$', views.ThrottledLoginView.as_view(), name='rest_login'), url(r'^logout/$', LogoutView.as_view(), name='rest_logout'), url(r'^user/$', UserDetailsView.as_view(), name='rest_user_details'), url(r'^password/change/$', PasswordChangeView.as_view(), name='rest_password_change'), ] rest_urls = [
from casting_secret.Jobs.urls import job_url_patterns from casting_secret.api.common_api import VerifyUsernameEmail, ListTalentCategories, NotificationAPI, EmailHandlerAPI, SubscriptionAPI from casting_secret.company.urls import company_url from casting_secret.search_indexes import urls as search_index_urls from casting_secret.user_profile.urls import profile_url_pattern from casting_secret.views import schema_view, FacebookLogin, TwitterLogin, FacebookConnect, TwitterConnect from casting_secret.wall.urls import wall_url_patterns urlpatterns = [ url(r'^$', schema_view), url('^admin/', admin.site.urls), url(r'^auth/', include('rest_auth.urls')), url(r'^auth/registration/', include('rest_auth.registration.urls')), re_path(r'^auth/registration/account-confirm-email/', VerifyEmailView.as_view(), name='account_email_verification_sent'), url(r'^password/reset/$', PasswordResetView.as_view(), name='rest_password_reset'), re_path( r'^rest-auth/password/reset/confirm/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', PasswordResetConfirmView.as_view(), name='password_reset_confirm'), # re_path(r'^auth/registration/account-confirm-email/(?P<key>[-:\w]+)/$', VerifyEmailView.as_view(), name='account_confirm_email'), url(r'^auth/facebook/$', FacebookLogin.as_view(), name='fb_login'), url(r'^auth/twitter/$', TwitterLogin.as_view(), name='twitter_login'), url(r'^auth/facebook/connect/$', FacebookConnect.as_view(), name='fb_connect'), url(r'^auth/twitter/connect/$', TwitterConnect.as_view(), name='twitter_connect'), url(r'^social-accounts/$', SocialAccountListView.as_view(), name='social_account_list'), url(r'^social-accounts/(?P<pk>\d+)/disconnect/$', SocialAccountDisconnectView.as_view(), name='social_account_disconnect'), url(r'^api-token-verify/', verify_jwt_token),
from django.conf.urls.static import static from django.views.decorators.csrf import csrf_exempt from django.utils.decorators import method_decorator from FigureSite.auth import CustomPasswordResetView from rest_auth.registration.views import RegisterView, VerifyEmailView from rest_auth.views import (LoginView, LogoutView, UserDetailsView, PasswordChangeView, PasswordResetView, PasswordResetConfirmView) from django.middleware.csrf import get_token from rest_framework_simplejwt.views import (TokenRefreshView) from FigureSite.auth import TokenObtainPairView urlpatterns = [ path('djadmin/', admin.site.urls), path('api/mfc/', include('mfc.urls')), path('api/', include('FigureSite.urls')), path('api/auth/register/', RegisterView.as_view()), path('api/auth/register/verify-email/', VerifyEmailView.as_view()), path('api/auth/change_password/', csrf_exempt( PasswordChangeView.as_view())), path('api/auth/password_reset/', CustomPasswordResetView.as_view(), name='password_reset_confirm'), path('api/auth/password_reset/verify/', csrf_exempt(PasswordResetConfirmView.as_view())), path('api/auth/login/', TokenObtainPairView.as_view()), path('api/auth/refresh/', TokenRefreshView.as_view()) ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
from django.urls import path from .views import (ManagerRegisterView, GeneralManagerRegisterView, GetRegisterKeyView) from rest_auth.registration.views import VerifyEmailView urlpatterns = [ # path('', include('rest_auth.urls')), path('manager-signup/', ManagerRegisterView.as_view()), path('general-manager-signup/', GeneralManagerRegisterView.as_view()), path('verify-email/', VerifyEmailView.as_view()), path('verify-person/', GetRegisterKeyView.as_view()), ]
views.GoogleCallbackCreate.as_view(), name='google_callback_login', ), url( r'^connect/', views.GoogleCallbackConnect.as_view(), name='google_callback_connect', ), ] urlpatterns = [ url(r'^auth/', include('rest_auth.urls')), url(r'^auth/registration/$', csrf_exempt(RegisterView.as_view()), name='rest_register'), url(r'^auth/registration/verify-email/$', csrf_exempt(VerifyEmailView.as_view()), name='rest_verify_email'), url(r'^auth/registration/account-confirm-email/(?P<key>[-:\w]+)/$', csrf_exempt(TemplateView.as_view()), name='account_confirm_email'), url(r'^auth/social/github/', include(github_urlpatterns)), url(r'^auth/social/google/', include(google_urlpatterns)), url( r'^auth/user/accounts/', SocialAccountListView.as_view(), name='social_account_list', ), url( r'^auth/user/accounts/<int:pk>/disconnect/', SocialAccountDisconnectView.as_view(), name='social_account_disconnect', ),
from django.conf.urls import include, url from django.conf.urls.static import static from django.conf import settings from django.urls import path, re_path from rest_auth.registration.views import VerifyEmailView from rest_auth.views import PasswordResetConfirmView, PasswordResetView from .views import ( CustomRegistrationView, CustomLoginView, ) urlpatterns = [ url(r'^rest-auth/password_reset/$', PasswordResetView.as_view()), # re_path(r'^rest-auth/password/reset/confirm/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', # PasswordResetConfirmView.as_view(), name='password_reset_confirm'), url(r'^rest-auth/login/$', CustomLoginView.as_view()), path('rest-auth/', include('rest_auth.urls')), url(r'^rest-auth/registration/$', CustomRegistrationView.as_view()), url(r'^rest-auth/registration/account-confirm-email/(?P<key>.+)/$', VerifyEmailView.as_view()), path('rest-auth/registration/', include('rest_auth.registration.urls')), path('accounts/', include('allauth.urls')), ] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
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, re_path from django.conf.urls import url from .views import FacebookLogin, GoogleLogin, LinkedInLogin, AccountConfirmed from allauth.account.views import ConfirmEmailView,PasswordResetView from rest_auth.registration.views import VerifyEmailView urlpatterns = [ path('users/', include('users.urls')), path('accounts/', include('allauth.urls')), url(r'^rest-auth/', include('rest_auth.urls')), url(r'^rest-auth/facebook/$', FacebookLogin.as_view(), name='facebook_login'), url(r'^rest-auth/google/$', GoogleLogin.as_view(), name='google_login'), url(r'^rest-auth/linkedin/$', LinkedInLogin.as_view(), name='linkedin_login'), url(r'^rest-auth/registration/account-confirm-email/(?P<key>[-_:\w]+)/$', ConfirmEmailView.as_view(), name='account_confirm_email'), url(r'^rest-auth/registration/account-confirmed/', AccountConfirmed, name='account_confirmed'), url(r'^rest-auth/registration/', include('rest_auth.registration.urls')), url(r'^rest-auth/password-reset/confirm/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', PasswordResetView.as_view(), name='password_reset_confirm'), re_path(r'^account-confirm-email/(?P<key>[-:\w]+)/$', VerifyEmailView.as_view(), name='account_confirm_email'), path('admin/', admin.site.urls), ]
from rest_framework import routers from django.urls import path, include from django.conf.urls.static import static from django.conf import settings as django_settings from .api import * from .views import * from rest_auth.registration.views import RegisterView, VerifyEmailView from rest_auth.views import PasswordChangeView, PasswordResetView, PasswordResetConfirmView router = routers.DefaultRouter() urlpatterns = router.get_urls() + [ path('api/login', LoginView.as_view()), path('api/logout', LogoutView.as_view()), path('api/register', RegisterView.as_view()), path('api/verify-email', VerifyEmailView.as_view()), path('api/user_data', user_data), path('api/settings', change_settings), path('api/change-password', PasswordChangeView.as_view()), path('api/reset-password', PasswordResetView.as_view()), path('api/confirm-password', PasswordResetConfirmView.as_view()), path('api/get-items', get_items), path('api/get-item', get_item), path('api/get-favorites', get_favorites), path('api/add-favorite', add_favorite), path('api/get-suggestions', suggestion), path('api/create_pay', Pay.as_view()), path('pay_notify', pay_notify), path('api/check-payment', check_payment), path('api/pay-order', pay_order), path('api/order-history', get_orders),
# api/urls.py from django.urls import include, path from django.conf.urls import url from api.views import CustomLoginView, CustomRegisterView, CustomUserDetailsView, CustomVerifyEmailView, CustomConfirmEmailView from rest_auth.registration.views import VerifyEmailView, ConfirmEmailView from rest_auth.views import PasswordResetConfirmView urlpatterns = [ url('', include('rest_auth.urls')), path('register/account-confirm-email/<str:key>/', ConfirmEmailView.as_view(),), path('register/account-confirm-email/', VerifyEmailView.as_view(), name='account_email_verification_sent'), path('login/', CustomLoginView.as_view(), name='my_custom_login'), path('register/', include('rest_auth.registration.urls')), path('register/', CustomRegisterView.as_view(), name='my_custom_register'), path('user/', CustomUserDetailsView.as_view(), name='my_custom_user'), ]
router = DefaultRouter() router.register(r'chat', views.UsersChatRecoredsViewSet) router.register(r'user-channels', views.UserChannelsViewSet) router.register(r'all-channels', views.AllChannelsViewSet) urlpatterns = [ url(r'^', include(router.urls)), url(r'^rest-auth/', include('rest_auth.urls')), url(r'^accounts/', include('allauth.urls')), url(r'^rest-auth/auth/', include('rest_auth.registration.urls')), ] # Auth URLs urlpatterns += [ url(r'^register', RegisterView.as_view(), name='register'), url(r'^verify-email', VerifyEmailView.as_view(), name='verify_email'), url(r'^login', LoginView.as_view(), name='login'), url(r'^logout', LogoutView.as_view(), name='logout'), # Password Reset url(r'^reset-password', PasswordResetView.as_view(), name='resetPassword'), #POST NEW PASSWORD HERE url(r'^reset/password/confirm', PasswordResetConfirmView.as_view(), name='password_reset_confirm'), # Change Password url(r'^change-password', PasswordChangeView.as_view(), name='change_password'), url(r'^account-confirm-email/(?P<key>[-:\w]+)/$', TemplateView.as_view(),
from django.urls import path, re_path, include from rest_auth.registration.views import RegisterView, VerifyEmailView, ConfirmEmailView from rest_auth.views import LoginView, LogoutView, PasswordResetView, PasswordResetConfirmView from .views import * from .admin_views import * urlpatterns = [ #path('signup/',SignUpView.as_view()), path('account-confirm-email/<str:key>/', ConfirmEmailView.as_view()), path('signup/', RegisterView.as_view()), path('login/', LoginView.as_view()), path('logout/', LogoutView.as_view()), path('verify-email/', VerifyEmailView.as_view(), name='rest_verify_email'), path('account-confirm-email/', VerifyEmailView.as_view(), name='account_email_verification_sent'), re_path(r'^account-confirm-email/(?P<key>[-:\w]+)/$', VerifyEmailView.as_view(), name='account_confirm_email'), path('password-reset/', PasswordResetView.as_view()), path('password-reset-confirm/<uidb64>/<token>/', PasswordResetConfirmView.as_view(), name='password_reset_confirm'), path('profile/', UserProfileView.as_view()), path('user-status/', UserStatusView.as_view()), path('new-post/', post_create_view), path('post-list/', PostListView.as_view()), path('update-post/', post_update_view), path('delete-post/', post_delete_view), ]
from django.urls import path, include from allauth.account.views import ConfirmEmailView, PasswordResetDoneView from rest_auth.views import PasswordResetConfirmView from rest_auth.registration.views import VerifyEmailView from .views import ( userProfileView, profileFollowerListView, profileFollowingListView, registrationCompleteView, doFollowOrUnfollowView, updateProfile, userProfileListView, UserProfileListView, amIFollowingUser ) urlpatterns = [ path('password/reset/confirm/complete/', PasswordResetDoneView.as_view(), name='password_reset_complete'), path('password-reset/confirm/<uidb64>/<token>/', PasswordResetConfirmView.as_view(), name='password_reset_confirm'), path('registration/account-confirm-email/<str:key>/', ConfirmEmailView.as_view(), name='account_confirm_email'), path('registration/account-email-verification-sent/', VerifyEmailView.as_view(), name='account_email_verification_sent'), path('registration/', include('rest_auth.registration.urls')), path('registration/complete/', registrationCompleteView, name='account_confirm_complete'), path('', include('rest_auth.urls')), path('profile/<str:username>/', userProfileView, name='profile_detail'), path('profile/<str:username>/followers/', profileFollowerListView, name='profile_follower_list'), path('profile/<str:username>/following/', profileFollowingListView, name='profile_following_list'), path('profile/<str:username>/follow/', doFollowOrUnfollowView, name='follow_or_unfollow'), path('profile/<str:username>/update/', updateProfile, name='profile_update'), path('profile-list/', UserProfileListView.as_view(), name='profile_list'), path('am-i-following-user/<str:username>/', amIFollowingUser, name='am_i_following_user'), ]
from django.urls import path, include, re_path from allauth.account.views import confirm_email from users.views import * from rest_auth.registration.views import VerifyEmailView, RegisterView from django.views.generic import TemplateView from django.conf import settings from django.conf.urls.static import static from django.views.generic import RedirectView urlpatterns = [ path('user-detailx/', UserDetailsView.as_view()), path('contact-us/', Contact.as_view(), name='contact-us'), path('api-auth/', include('rest_framework.urls')), path('sendconfirmationemail/', EmailConfirmation.as_view(), name='send-email-confirmation'), path('mail/', EmailView.as_view()), path('registration/verify-email/', VerifyEmailView.as_view(), name='rest_verify_email'), path('verify/', validateEmailToken), re_path(r'update-profile/(?P<pk>\d+)/', UserPartialUpdateView.as_view(), name="updateProfile"), re_path(r'^rest-auth/', include('rest_auth.urls')), path('rest-auth/registration/', include('rest_auth.registration.urls')), path('api/', include('users.api.urls')), re_path(r'password-reset/confirm/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/', TemplateView.as_view(template_name="password_reset_confirm.html"), name='password_reset_confirm'), path('listApi/',include('users.api.order.urls')), path('resend-verification-email/', NewEmailConfirmation.as_view(), name='resend-email-confirmation'), path('password/reset/', PasswordResetView.as_view(), name='rest_password_reset'), re_path(r'^account-confirm-email/', VerifyEmailView.as_view(), name='account_email_verification_sent'), path('admin/', admin.site.urls),
PasswordResetView, PasswordResetConfirmView, ) from rest_framework_simplejwt.views import ( TokenObtainPairView, TokenRefreshView, TokenVerifyView ) from django.conf import settings from auth.views import LoginView, LogoutView rest_auth_registration_urls = [ # allauth login/logout/password re_path(r"^registration/$", RegisterView.as_view(), name="account_signup"), re_path(r"^registration/verify-email/$",VerifyEmailView.as_view(),name="rest_verify_email",) ] urlpatterns = [ # rest_auth login/logout/password re_path(r"^login/$", LoginView.as_view(), name="rest_login"), re_path(r"^logout/$", LogoutView.as_view(), name="rest_logout"), re_path(r"^password/reset/$", PasswordResetView.as_view(), name="rest_password_reset"), re_path(r"^password/reset/confirm/$",PasswordResetConfirmView.as_view(),name="rest_password_reset_confirm",), re_path(r"^password/change/$", PasswordChangeView.as_view(), name="rest_password_change" ), #rest_framework_simplejwt re_path(r"^token/obtain/$", TokenObtainPairView.as_view(), name='token_obtain_pair'), re_path(r"^token/refresh/$", TokenRefreshView.as_view(), name='token_refresh'), re_path(r"^token/verify/$", TokenVerifyView.as_view(), name='token_verify'),
2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.contrib import admin from django.urls import include, path, re_path from rest_framework_jwt.views import obtain_jwt_token, refresh_jwt_token, verify_jwt_token from rest_auth.registration.views import VerifyEmailView, RegisterView from rest_framework_jwt.views import obtain_jwt_token urlpatterns = [ # application endpoints path('', include('django.contrib.auth.urls')), path('admin/', admin.site.urls), path('api/fuel/', include('fuel.urls')), path('api/ratings/', include('ratings.urls')), # rest_framework_jwt endpoints # path('auth/api-token-auth/', obtain_jwt_token), # not required as it is provided with django-rest-auth login path('auth/api-token-refresh/', refresh_jwt_token), path('auth/api-token-verify/', verify_jwt_token), # authentication endpoints # refer to https://django-rest-auth.readthedocs.io/en/latest/api_endpoints.html for endpoints path('auth/', include('rest_auth.urls')), path('auth/registration/', include('rest_auth.registration.urls')), # endpoints for email verification # https://stackoverflow.com/questions/48390749/reverse-for-account-email-verification-sent-not-found-account-email-verifica re_path(r'^account-confirm-email/', VerifyEmailView.as_view(), name='account_email_verification_sent'), re_path(r'^auth/account-confirm-email/(?P<key>[-:\w]+)/$', VerifyEmailView.as_view(), name='account_confirm_email'), ]
from django.conf.urls import url from django.urls import path, include from rest_auth.registration.views import VerifyEmailView from django.views.generic import TemplateView from allauth.account.views import ConfirmEmailView urlpatterns = [ path('calendar/', include('mainapp.urls')), path('holydays/', include('holydays.urls')), path('rest-auth/', include('rest_auth.urls')), path('rest-auth/registration/', include('rest_auth.registration.urls')), path('rest-auth/registration/verify-email/', VerifyEmailView.as_view(), name='account_email_verification_sent'), url(r'^rest-auth/registration/account-confirm-email/(?P<key>[-:\w]+)/$', TemplateView.as_view(), name='account_confirm_email'), ]
from usermanagement.views import EmailConfirmationView schema_view = get_schema_view(openapi.Info( title="TodoApp-API", default_version="v1", description="API of my hobby project", contact=openapi.Contact(email="*****@*****.**"), license=openapi.License(name="MIT License"), ), public=True, permission_classes=(permissions.AllowAny, )) urlpatterns = [ re_path(r'^$', schema_view.with_ui('swagger', cache_timeout=0), name='schema_redoc'), path('api/accounts/', include('allauth.urls')), re_path(r'^api/', include('django.contrib.auth.urls')), re_path( r"^api/auth/registration/account-confirm-email/(?P<key>[\s\d\w().+-_',:&]+)/$", EmailConfirmationView.as_view(), name='account_confirm_email'), re_path(r'^api/auth/registration/account-confirm-email/$', VerifyEmailView.as_view(), name='account_email_verification_sent'), path('api/auth/registration/', include('rest_auth.registration.urls')), path('api/auth/', include('rest_auth.urls')), path('api/todos/', include('todo.urls')), path('admin/', admin.site.urls), ]
from rest_auth.registration.views import VerifyEmailView from django.conf.urls import url from . import views urlpatterns = [ url('register/', views.UserRegisterView.as_view(), name='register'), url('confirm-email/(?P<key>[-:\w]+)/$', VerifyEmailView.as_view(), name='account_confirm_email'), ]