コード例 #1
0
ファイル: urls.py プロジェクト: igorshevk/ChatterPy
router.register(r"DNM", contacts_viewsets.DNMViewSet)
router.register(r"automations", automations_viewsets.AutomationViewSet)
router.register(r"datasources", email_viewsets.DataSourceViewSet)
router.register(r"emails", email_viewsets.EmailViewSet)
router.register(r"templates", email_viewsets.TemplateViewSet)

urlpatterns = [
    path("admin/", admin.site.urls),
    path("v1/", include(router.urls)),
    path("api/", include(("conversations.urls", "conversations"), namespace="conversations")),
    # path("api/", include("automations.urls")),
    # path("api/", include("contacts.urls")),
    path("api-auth/", include("rest_framework.urls", namespace="rest_framework")),
    path("auth/", include("dj_rest_auth.urls")),
    path("auth/registration/", include("dj_rest_auth.registration.urls")),
    path("auth/account-confirm-email/", VerifyEmailView.as_view(), name="account_email_verification_sent"),
    path("accounts/", include("accounts.urls")),
    path("auto/", include("emails.urls")),
]

if settings.DEBUG:
    urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)


"""chatterpy_test 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
コード例 #2
0
ファイル: urls.py プロジェクト: omar944/api-project
from dj_rest_auth.registration.views import VerifyEmailView, ConfirmEmailView
from dj_rest_auth.views import PasswordResetConfirmView
from django.urls import path, include

from .views import email_verified, GetUserView

urlpatterns = [
    path('auth/password/reset/confirm/<slug:uidb64>/<slug:token>/',
         PasswordResetConfirmView.as_view(),
         name='password_reset_confirm'),
    path('auth/registration/account-confirm-email/<str:key>/',
         ConfirmEmailView.as_view()),
    path('auth/', include('dj_rest_auth.urls')),
    path('auth/registration/', include('dj_rest_auth.registration.urls')),
    path('auth/account-confirm-email/',
         VerifyEmailView.as_view(),
         name='account_email_verification_sent'),
    path('email-verified', email_verified),
    path('user/<int:pk>', GetUserView.as_view()),
]
コード例 #3
0
ファイル: urls.py プロジェクト: Baysaakop/Django-React
from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from dj_rest_auth.registration.views import VerifyEmailView, ConfirmEmailView
from dj_rest_auth.views import PasswordResetConfirmView
from users.views import FacebookLogin

urlpatterns = [
    path('admin/', admin.site.urls),         
    path('accounts/', include('allauth.urls'), name='socialaccount_signup'),
    path('rest-auth/', include('dj_rest_auth.urls')),   
    path('rest-auth/registration/account-confirm-email/<str:key>/', ConfirmEmailView.as_view()), 
    path('rest-auth/registration/', include('dj_rest_auth.registration.urls')),
    path('rest-auth/account-confirm-email/', VerifyEmailView.as_view(), name='account_email_verification_sent'),
    path('rest-auth/password/reset/confirm/<slug:uidb64>/<slug:token>/', PasswordResetConfirmView.as_view(), name='password_reset_confirm'),
    path('rest-auth/facebook/', FacebookLogin.as_view(), name='fb_login'),    
    path('api/items/', include('items.urls')),
    path('api/users/', include('users.urls')),   
    path('djrichtextfield/', include('djrichtextfield.urls'))    
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
コード例 #4
0
from django.urls import path, include
from .views import BlacklistTokenUpdateView
from dj_rest_auth.registration.views import VerifyEmailView, ConfirmEmailView
from rest_framework import urlpatterns
from django.db import router
from rest_framework.routers import DefaultRouter
from .views import UserView, UserEditView, UserProfileView

router = DefaultRouter()
router.register("my-profile/edit", UserEditView, basename="profile-edit")
router.register("my-profile/detail", UserView, basename="profile-detail")
router.register("users", UserProfileView, basename="users")

urlpatterns = [
     path("registration/account-confirm-email/<str:key>/",
         ConfirmEmailView.as_view()),
     path("", include("dj_rest_auth.urls")),
     path("login/", include("dj_rest_auth.urls")),
     path("logout/blacklist/",
          BlacklistTokenUpdateView.as_view(),
          name="blacklist"),
     path("registration/", include("dj_rest_auth.registration.urls")),
     path("account-confirm-email/", VerifyEmailView.as_view()),
]

urlpatterns += router.urls
コード例 #5
0
from dj_rest_auth.registration.views import VerifyEmailView
from django.conf import settings

from django.urls import path, include
from rest_framework.routers import DefaultRouter, SimpleRouter

from sonsuz_website.users.api.views import EmailViewSet, UserFollowViewSet, UserFansView, RegisterView

if settings.DEBUG:
    router = DefaultRouter()
else:
    router = SimpleRouter()
router.register("email", EmailViewSet)
router.register("user-follow", UserFollowViewSet)
router.register("user-fans", UserFansView)
# router.register("verify-email", VerifyEmailView)
urlpatterns = router.urls
urlpatterns += [
    path('', include('dj_rest_auth.urls')),
    path('register/', RegisterView.as_view(), name='register'),

    path('signup/', include('dj_rest_auth.registration.urls')),
    path("verify-email/", VerifyEmailView.as_view()),

]
コード例 #6
0
    permission_classes=(permissions.IsAuthenticatedOrReadOnly,),
)

urlpatterns = [
    path('admin/', admin.site.urls),
    path('api/', include(("backend.apps.api.urls", "backend.apps.api"), namespace="api")),

    # login in rest-auth page
    path('api/auth/', include('rest_framework.urls')),
    path('api/rest-auth/', include('dj_rest_auth.urls')),
    path('api/rest-auth/registration/', include('dj_rest_auth.registration.urls')),

    # password reset with email
    path('api/rest-auth/password/reset/confirm/<uidb64>/<token>/',
         views.PasswordResetConfirmView.as_view(), name="password_reset_confirm"),
    # verification email after registration
    re_path(r'registration/account-confirm-email/', VerifyEmailView.as_view(),
            name='account_email_verification_sent'),
    re_path(r'registration/account-confirm-email/(?P<key>[-:\w]+)/', VerifyEmailView.as_view(),
            name='account_confirm_email'),
    # api documentation
    path('', schema_view.with_ui('swagger',
                                 cache_timeout=0), name='schema-swagger-ui'),
]

if settings.DEBUG:
    urlpatterns += static(settings.STATIC_URL,
                          document_root=settings.STATIC_ROOT)
    urlpatterns += static(settings.MEDIA_URL,
                          document_root=settings.MEDIA_ROOT)
コード例 #7
0
ファイル: urls.py プロジェクト: BinKevs/TisisRepo
    path('api/product_files/', include('product_files.urls')),
    path('api/product_variation/', include('product_variations.urls')),
    path('api/categories/', include('categories.urls')),
    path('api/vouchers/', include('vouchers.urls')),
    path('api/refunds/', include('refunds.urls')),
    path('api/reviews/', include('reviews.urls')),
     path('api/address/', include('addresses.urls')),
    path('api/suppliers/', include('suppliers.urls')),
    # path('api/suppliers/withPagination', include('suppliers.urlsWithPagination')),
    path('api/inventories/', include('inventories.urls')),
    path('api/transactions/items/', include('transaction_items.urls')),
    path('api/transactions/', include('transactions.urls')),
    path('api/transactions-status/<pk>',TransactionStatusUpdate, name="transaction-status-update"),
    # path('api/transactions-online/', include('transactions.urls-2')),
    path('api/attendance_log/', include('attendance_log.urls')),
    path('api/activity_log/', include('activities_log.urls')),


    path('auth/', include('dj_rest_auth.urls')),
    path('auth/registration/', include('dj_rest_auth.registration.urls')),
    path('auth/account-confirm-email/', VerifyEmailView.as_view(),
     name='account_email_verification_sent'),
    path('auth/registration/account-confirm-email/(?P<key>[-:\w]+)/$', VerifyEmailView.as_view(),
     name='account_confirm_email'),
    
    url(r'^account/', include('allauth.urls')),
    url(r'^accounts-rest/registration/account-confirm-email/(?P<key>.+)/$', confirm_email, name='account_confirm_email'),

]
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
                
コード例 #8
0
from allauth.account.views import ConfirmEmailView
from dj_rest_auth.registration.views import VerifyEmailView
from django.contrib.auth.views import (
    PasswordResetCompleteView,
    PasswordResetConfirmView,
    PasswordResetView,
)
from django.urls import include, path, re_path

urlpatterns = [
    path("account-confirm-email/<str:key>/", ConfirmEmailView.as_view()),
    path("", include("dj_rest_auth.urls")),
    path("registration/", include("dj_rest_auth.registration.urls")),
    path("verify-email/", VerifyEmailView.as_view(), name="rest_verify_email"),
    path(
        "dj-rest-auth/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(),
         name='password_reset'),
    path('password-reset-confirm/<uidb64>/<token>/',
         PasswordResetConfirmView.as_view(
             template_name='users/password_reset_confirm.html'),
         name='password_reset_confirm'),
    path('password-reset-complete/',
コード例 #9
0
from django.urls import path, re_path
from dj_rest_auth.registration.views import RegisterView, VerifyEmailView, ConfirmEmailView
from dj_rest_auth.views import LoginView, LogoutView

urlpatterns = [
    path('register/', 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('account-confirm-email/<str:key>/', ConfirmEmailView.as_view()),
]
コード例 #10
0
ファイル: urls.py プロジェクト: laodeaksar/post
urlpatterns = [
    path('admin/', admin.site.urls),
]
urlpatterns += i18n_patterns(
    path('i18n/', include('django.conf.urls.i18n')),
    path('sitemap.xml', sitemap, {'sitemaps': sitemaps}),
    path('', include('core.urls')),
    path('', include('contacts.urls')),
    path('', include('blogs.urls')),
    path('ckeditor/', include('ckeditor_uploader.urls')),
    path('', include('pwa.urls')),
    path('profiles/', include('profiles.urls')),
    path('perfomance/', include('products.urls')),
    path('upload/', include('csvs.urls')),
    path('customers/', include('customers.urls')),

    # Restframework urls
    path('accounts/', include('allauth.urls')),
    path('auth/', include('dj_rest_auth.urls')),
    path('auth/registration/', include('dj_rest_auth.registration.urls')),
    path('auth/registration/account-confirm-email/', VerifyEmailView.as_view(),
         name='account_email_verification_sent'),
    path("api/blog/", include('blogs.api.urls')),
    path("me/", UserDetailView.as_view(), name="me"),

    prefix_default_language=False
)

urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
コード例 #11
0
ファイル: urls.py プロジェクト: matejnesuta/zaverecny-projekt
from django.urls import path, include, re_path
from django.views.generic import TemplateView
from .views import RegisterView, null_view, empty_view, dummy_view
from dj_rest_auth.registration.views import VerifyEmailView
from dj_rest_auth.views import PasswordResetConfirmView

urlpatterns = [
    path('password/reset/confirm/', empty_view, name='password_reset_confirm'),
    path('registration/account-confirm-email/', null_view, name='account_confirm_email'),
    path('registration/', RegisterView.as_view(), name='rest_register'),
    path('registration/verify-email/', VerifyEmailView.as_view(), name='rest_verify_email'),
    path('user/', dummy_view),
    path('', include('dj_rest_auth.urls')),
]