from django.urls import path from . import views from user.views import UserRegistrationView, UserLoginView from django.contrib.auth.views import LogoutView urlpatterns = [ path('login/', UserLoginView.as_view(), name='login'), path('logout/', LogoutView.as_view(), name='logout'), path('signup/', UserRegistrationView.as_view(), name='signup'), path('mypage/<username>', views.user_profile, name='mypage'), path('update_point/<username>', views.update_point, name='update_point'), #path('update_point/<username>/wait_auth', views.wait_auth, name='wait_auth'), ]
from django.conf.urls.static import static from django.conf import settings from django.contrib.auth.views import LogoutView from Designfeed.views import DesignfeedListView, DesignfeedDetailView, DesignfeedUpdateView, detail from user.views import UserRegistrationView, UserLoginView, UserVerificationView, ResendVerifyEmailView import user.views urlpatterns = [ path('admin/', admin.site.urls), path('', user.views.prolog, name="prolog"), path('feed/', DesignfeedListView.as_view(), name='home'), #메인페이지 path('feed/<feed_id>', DesignfeedDetailView.as_view(), name='detail'), #디테일 페이지 path('feed/create/', DesignfeedUpdateView.as_view()), #업로드 페이지 path('feed/<feed_id>/update/', DesignfeedUpdateView.as_view()), #업데이트 페이지 path('user/create/', UserRegistrationView.as_view( template_name='user/user_model.html')), #유저 생성 페이지 path('user/login/', UserLoginView.as_view(), name="login"), #유저 로그인 페이지 path('user/<pk>/verify/<token>', UserVerificationView.as_view()), #유저 토큰 발급 페이지 path('user/resend_verify_email/', ResendVerifyEmailView.as_view()), #아무튼 이메일 관리 페이지 path('user/logout/', LogoutView.as_view()), #로그아웃 페이지 path('accounts/', include('allauth.urls')), #소셜 로그인 페이지 path('detail/', detail, name='detail'), #디테일 페이지 확인 용 신경쓸 필요 없음 ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
from django.urls import path from user.views import (UserView, UserLoginView, AdminView, AdvisorsView, BookingCreateView, AdvisorsBookingView) from user.models import User from user.serializers import UserSerializer urlpatterns = [ path('user/register/', UserView.as_view()), path('user/login/', UserLoginView.as_view()), path('admin/advisor/', AdminView.as_view()), path('user/<uuid:user_id>/advisor/', AdvisorsView.as_view()), path('user/<uuid:user_id>/advisor/booking/', AdvisorsBookingView.as_view()), path('user/<uuid:user_id>/advisor/<uuid:advisor_id>/', BookingCreateView.as_view()), ]
from django.contrib.auth.views import LogoutView from django.urls import path from user.views import hello, Index, UserRegistrationView, UserLoginView urlpatterns = [ path('hello/<to>', hello), path('create/', UserRegistrationView.as_view(), name="create_user"), path('login/', UserLoginView.as_view(), name="login_user"), path('logout/', LogoutView.as_view(), name="logout_user"), ]
"""unipune URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/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 knox import views as knox_views from user.views import UserLoginView urlpatterns = [ path('admin/', admin.site.urls), path('login', UserLoginView.as_view()), path('logout', knox_views.LogoutView.as_view()), path('contact-person/',include('contact_person.urls')), path('logoutall', knox_views.LogoutAllView.as_view()), path('user',include('user.urls')), ]
from django.conf.urls import url from user.views import UserRegistrationView, UserLoginView urlpatterns = [ url(r'^signup', UserRegistrationView.as_view()), url(r'^login', UserLoginView.as_view()), ]
from django.urls import path from user.views import UserListView,UserCreateView,UserDeleteView,UserUpdateView,UserDetailView,UserLoginView,UserLogoutView app_name = 'user' urlpatterns = [ path('usuarios',UserListView.as_view(),name = 'listar_usuarios'), path('criarusuario',UserCreateView.as_view(),name = 'criar_usuario'), path('usuarios/<int:pk>/apagar',UserDeleteView.as_view(),name = 'deletar_usuario'), path('usuarios/<int:pk>/editar',UserUpdateView.as_view(),name = 'editar_usuario'), path('usuarios/<int:pk>/detalhar',UserDetailView.as_view(),name = 'detalhar_usuario'), path('usuarios/login',UserLoginView.as_view(),name='logar_usuario'), path('usuarios/logout',UserLogoutView.as_view(),name = 'deslogar_usuario'), ]
from django.conf.urls import url from rest_framework_jwt.views import refresh_jwt_token from user.views import UserLoginView, UserRegistrationView urlpatterns = [ url(r'^signup', UserRegistrationView.as_view()), url(r'^signin', UserLoginView.as_view()), url(r'^token/refresh', refresh_jwt_token), ]
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 rest_framework_simplejwt import views as jwt_views from main import views from user.views import UserLoginView urlpatterns = [ path('admin/', admin.site.urls), path('', views.index, name="index"), path('tasks/', include('task.urls')), path('users/', include('user.urls')), #path('api_token_auth/', obtain_auth_token) path('api/token/', UserLoginView.as_view(), name='token_obtain_pair'), path('api/token/refresh/', jwt_views.TokenRefreshView.as_view(), name='token_refresh') ]
# coding=utf-8 ############################################################################### # Copyright 2013 Jean-Matthieu BARBIER <*****@*****.**> ############################################################################### # This file is part of FollowDoc # # FollowDoc is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # FollowDoc is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with FollowDoc. If not, see <http://www.gnu.org/licenses/> ############################################################################### from django.conf.urls import patterns, url from user.views import UserListView, UserCreateView, UserDetailView, \ UserLoginView, UserUpdateView urlpatterns = patterns('', url(r'^$', UserListView.as_view(), name='user_list'), url(r'^_create/', UserCreateView.as_view(), name='user_create'), url(r'^(?P<pk>[\d]+)/$', UserDetailView.as_view(), name='user_detail'), url(r'^(?P<pk>[\d]+)/_update/$', UserUpdateView.as_view(), name='user_update'), url(r'login/$', UserLoginView.as_view(), name='main_login') )
) urlpatterns = [ path('admin/', admin.site.urls), path('user/', include('user.urls')), path('order/', include('order.urls')), re_path(r'^$', TemplateView.as_view(template_name='index.html'), name='index_view'), # re_path(r'^api-auth/login/$', include('rest_framework.urls'), name='auth_login'), re_path(r'^transform/$', request_transform, name=None), re_path(r'^calculation/$', TemplateView.as_view(template_name='index.html'), name=None), re_path(r'^login/$', TemplateView.as_view(template_name='index.html'), name='login'), re_path(r'^api-auth/login', UserLoginView.as_view(), name='auth_login'), re_path(r'^forgot-password/$', TemplateView.as_view(template_name='index.html'), name=None), re_path(r'^registration/$', TemplateView.as_view(template_name='index.html'), name='registration'), re_path(r'^swagger/$', schema_view.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) urlpatterns += [] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
path('admin/', admin.site.urls), path('', myapp.views.home, name='home'), path('about/', myapp.views.about, name='about'), path('board/', myapp.views.board, name='board'), path('board/<int:board_id>/', myapp.views.board_detail, name='board_detail'), path('board/create/', myapp.views.board_create, name='create'), path('board/<int:board_id>/delete/', myapp.views.board_delete, name='delete'), path('board/<int:board_id>/update', myapp.views.board_update, name='update'), path('board/<int:board_id>/comment/<int:comment_id>/delete', myapp.views.comment_delete, name='comment_delete'), path('notice', myapp.views.notice, name='notice'), path('notice/<int:notice_id>/', myapp.views.notice_detail, name='detail'), path('user/create/', UserRegistrationView.as_view(), name='signup'), #회원가입 path('user/login/', UserLoginView.as_view(), name='login'), #로그인 path('user/logout/', LogoutView.as_view(), name='logout'), #로그아웃 path('user/update/', user.views.update, name='update'), #유저 수정 path('password_change/', MyPasswordChangeView.as_view(), name='password_change'), path('user/delete', user.views.delete, name='delete'), path('user/mypage', user.views.mypage, name='mypage'), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)