"""gooyal_accounts URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.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.conf import settings from django.conf.urls import url from django.conf.urls.static import static from django.contrib.auth.views import LogoutView from django.urls import path, include from django.contrib import admin # from apps.gooyal_oauth2.views.introspect import introspect_token from apps.transactions.views import TransactionList, TransactionDetail, TransactionPay, TransactionReceipt, \ WithdrawVerify, WithdrawSubmit, DepositSubmit, DepositVerify from apps.users.views import UserListView, UserDetailView, AccountView, RequestOTPView, ChangePasswordView, \ OTPLoginView, home, ProvinceApiView from django.contrib.auth import urls as auth_urls # Setup the URLs and include login URLs for the browsable API. urlpatterns = [ path('admin/', admin.site.urls), # path('accounts/', include(auth_urls)), path('login/', OTPLoginView.as_view(), name='login'), path('logout/', LogoutView.as_view(), name='logout'), path('', home, name='home'), # path('oauth2/introspect', introspect_token), # path('oauth2/introspect/', introspect_token, name='introspect'), path('oauth2/', include('oauth2_provider.urls', namespace='oauth2_provider')), # url(r'^oauth2/register_scope/$', register_scope, name = 'register-scope'), path('account/', AccountView.as_view(), name='account'), path('users/', UserListView.as_view()), path('users//', UserDetailView.as_view(), name='user_detail'), path('request_otp/', RequestOTPView.as_view(), name='register'), path('change_password/', ChangePasswordView.as_view(), name='change_password'), path('province', ProvinceApiView.as_view(), name='province'), path('transactions/', TransactionList.as_view(), name='transactions'), path('transactions/', TransactionDetail.as_view(), name='transaction_detail'), path('transactions//pay', TransactionPay.as_view(), name='transaction_pay'), path('deposit/', DepositSubmit.as_view(), name='deposit_submit'), path('deposit//verify', DepositVerify.as_view(), name='deposit_verify'), path('withdraw/', WithdrawSubmit.as_view(), name='withdraw_submit'), path('withdraw//verify', WithdrawVerify.as_view(), name='withdraw_verify'), ] urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)