Exemple #1
0
from django.urls import path
from authentication.views import RegisterView, VerifyEmail, LoginAPIView
from rest_framework_simplejwt.views import (
    TokenRefreshView, )

urlpatterns = [
    path('register/', RegisterView.as_view(), name="register"),
    path('login/', LoginAPIView.as_view(), name="login"),
    path('email-verify/', VerifyEmail.as_view(), name="email-verify"),
    path('token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
]
Exemple #2
0
from authentication.views import EmailTokenObtainPairView, VerifyEmail, ChangePasswordView
from rest_framework_simplejwt.views import TokenRefreshView
from django.core.mail import EmailMessage
from django.contrib import admin
from django.urls import path, include
from bhojanalaya_backend import settings
from django.conf.urls.static import static
from rest_framework import permissions

urlpatterns = [
    url(r'^jet/', include('jet.urls', 'jet')),
    url(r'^jet/dashboard/', include('jet.dashboard.urls', 'jet-dashboard')),
    path('admin/', admin.site.urls),
    path('auth/', include('authentication.urls')),
    path('bookings/', include('bookings.urls')),
    path('email-verify', VerifyEmail.as_view(), name='email-verify'),
    path('authentication/change_password/<int:pk>/',
         ChangePasswordView.as_view(),
         name='auth_change_password'),
    path('api-auth/', include('rest_framework.urls')),
    path('api/token/', EmailTokenObtainPairView.as_view()),
    path('api/token/refresh/', TokenRefreshView.as_view()),
    path('api/password_reset/',
         include('django_rest_passwordreset.urls',
                 namespace='password_reset')),
    path('invoice/', include('invoice.urls')),
    path('reviews/', include('reviews.urls'))
    # path('api/token/refresh/', TokenRefreshView.as_view()),
]

if settings.DEBUG:
Exemple #3
0
from django.urls import path

from authentication.views import RegisterView, VerifyEmail, LoginAPIView, ResetPassword, NewPassword, LogoutView, UserProfileView

urlpatterns = [
    path('register/', RegisterView.as_view(), name='register'),
    path('user-profile/', UserProfileView.as_view(), name='user-profile'),
    path('login/', LoginAPIView.as_view(), name='login'),
    path('logout/', LogoutView.as_view(), name='logout'),
    path('verify-email/', VerifyEmail.as_view(), name='verify-email'),
    path('reset-password/', ResetPassword.as_view(), name='reset-password'),
    path('new-pass/', NewPassword.as_view(), name='new-pass'),
]