from django.urls import path, include from django.contrib.auth import urls from accounts.views import UserCreateView, UpdateProfileView from django.contrib.auth.views import LoginView, LogoutView, PasswordResetView, PasswordResetDoneView, PasswordResetConfirmView, PasswordResetCompleteView from django.contrib.auth.views import PasswordChangeView, PasswordChangeDoneView urlpatterns = [ path('signup/', UserCreateView.as_view(), name='signup'), path('login/', LoginView.as_view(template_name='accounts/login.html'), name='login'), path('logout/', LogoutView.as_view(), name='logout'), path('profile/<slug:id>/', UpdateProfileView.as_view(), name='profile'), path('password-reset/', PasswordResetView.as_view( template_name='accounts/password_reset_form.html'), name='password_reset'), path('password-reset/done/', PasswordResetDoneView.as_view( template_name='accounts/password_reset_done.html'), name='password_reset_done'), path('reset/<uidb64>/<token>/', PasswordResetConfirmView.as_view( template_name='accounts/password_confirm.html'), name='password_reset_confirm'), path('reset/done/', PasswordResetCompleteView.as_view( template_name='accounts/password_reset_complete.html'), name='password_reset_complete'), path('password-change/', PasswordChangeView.as_view(
from django.contrib import admin from django.urls import path, include from django.conf import settings from rest_framework.documentation import include_docs_urls from rest_framework.schemas import get_schema_view import qualifierApp from qualifierApp import views from .views import HomePageView from accounts.views import UserCreateView from django.contrib.auth.views import LoginView, LogoutView urlpatterns = [ path('admin/', admin.site.urls), path('', HomePageView.as_view(), name='home'), path('register/', UserCreateView.as_view(), name='register'), path('login/', LoginView.as_view(template_name='form.html', extra_context={'title': 'Login'}), name='login'), path('logout/', LogoutView.as_view(), name='logout'), path('accounts/', include(('accounts.urls', 'accounts'), namespace='accounts')), path('books/', include(('books.urls', 'books'), namespace='books')), path('docs/', include_docs_urls(title='Books API')), path('schema/', get_schema_view(title="Books API")), path('qualifications/', include('qualifierApp.urls')), path('users/<int:userId>/qualifications', views.qualification_byQualifiedUser) ]
from django.urls import path from accounts.views import LoginView, LogoutView, UserCreateView, UserListView, UserUpdateView urlpatterns = [ path('login/', LoginView.as_view(), name='login'), path('logout/', LogoutView.as_view(), name='logout'), path('user/add/', UserCreateView.as_view(), name='user-add'), path('user/list/', UserListView.as_view(), name='user-list'), path('user/update/<pk>', UserUpdateView.as_view(), name="user-update"), ]
from django.urls import path from accounts.views import UserCreateView, UserListView, UserDetailedView, UserUpdateView, UserDeleteView, generate_csv app_name = 'accounts' urlpatterns = [ path('create_user/', UserCreateView.as_view(), name="create_user"), path('user_list/', UserListView.as_view(), name="user_list"), path('users/<pk>/', UserDetailedView.as_view(), name="user_detail"), path('update/<pk>/', UserUpdateView.as_view(), name="user_update"), path('delete/<pk>/', UserDeleteView.as_view(), name="user_delete"), path('user_list/generate_csv/', generate_csv, name="generate_csv") ]
from django.conf.urls import url, include from accounts.views import ( UserCreateView, ) from rest_framework_jwt.views import obtain_jwt_token app_name = 'accounts' urlpatterns = [ url(r'^register/$', UserCreateView.as_view(), name='accounts'), url(r'^home/login/token/$', obtain_jwt_token), ]
from django.contrib import admin from django.urls import path, include from django.conf import settings # 추가 1 from django.conf.urls.static import static from accounts.views import UserCreateView from accounts.models import User urlpatterns = [ path('admin/', admin.site.urls), path('shop/', include('shop.urls')), path('blog/', include('blog.urls')), path('pizzas/', include('pizzas.urls')), path('', include('home.urls')), ## # path('accounts/', include('django.contrib.auth.urls')), ## path('login/', UserCreateView.as_view()), ## # path('login/', include('django.contrib.auth.urls')), ## ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) if settings.DEBUG: # 추가 2 import debug_toolbar # 추가 2 urlpatterns += [ # 추가 2 path('__debug__/', include(debug_toolbar.urls)), # 추가 2 ] # 추가 2
from django.urls import path from accounts.views import UserCreateView, UserUpdateView urlpatterns = [ path('usercreate/', UserCreateView.as_view(), name='usercreate'), path('userupdate/<int:user_pk>', UserUpdateView.as_view(), name='userupdate'), ]
"""blog URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Add an import: from blog import urls as blog_urls 2. Import the include() function: from django.conf.urls import url, include 3. Add a URL to urlpatterns: url(r'^blog/', include(blog_urls)) """ from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from accounts.views import (login_view, logout_view, UserCreateView) urlpatterns = [ url(r'^register/', UserCreateView.as_view(), name='register'), url(r'^login/', login_view, name='login'), url(r'^logout/', logout_view, name='logout'), ]
from django.conf.urls import url from accounts.views import UserCreateView from billing.views import TransactionsView from dashboard.views import DashboardView, UsersListView from flows.views import FlowsView from analytics import views urlpatterns = [ url(r'^$', DashboardView.as_view(), name='index'), url(r'^transactions/$', TransactionsView.as_view(), name='transactions'), url(r'^flows/$', FlowsView.as_view(), name='flows'), url(r'^users/$', UsersListView.as_view(), name='users-list'), url(r'^users/create$', UserCreateView.as_view(), name='users-create'), ]
from rest_framework_jwt.views import obtain_jwt_token # Viewsets from accounts.views import UserViewSet, UserCreateView from category.views import MainCategoryViewSet, SubCategoryViewSet from products.views import ProductViewSet from order.views import OrderViewSet, OrderProductViewSet router = routers.DefaultRouter() router.register(r'accounts', UserViewSet) # router.register(r'accounts/(?P<email>.+)/', UserViewSet) router.register(r'maincategory', MainCategoryViewSet) router.register(r'subcategory', SubCategoryViewSet) router.register(r'products', ProductViewSet) router.register(r'order', OrderViewSet) router.register(r'orderProduct', OrderProductViewSet) # Authentication credentials were not provided # http -a email:password GET http://127.0.0.1:8000/api/ urlpatterns = [ path('api/', include(router.urls)), # curl -X POST -d "email=...&password=..." http://localhost:8000/api-token-auth/ # curl -X POST -d "[email protected]&password=minho2736" http://localhost:8000/api-token-auth/ path('api-token-auth/', obtain_jwt_token), path('register/', UserCreateView.as_view()), # Editor summernote path('summernote/', include('django_summernote.urls')), path('admin/', admin.site.urls), ]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
from django.urls import path, include from accounts.views import UserCreateView, AuthorCreateView from django.contrib.auth.views import LoginView, PasswordResetView, PasswordResetDoneView, PasswordResetConfirmView, PasswordChangeView, PasswordChangeDoneView urlpatterns = [ path('login/', LoginView.as_view(template_name="account/login.html"), name="login"), path('', include('django.contrib.auth.urls')), path('signup', UserCreateView.as_view()), path('bio/<int:pk>', AuthorCreateView.as_view()), path('password-reset', PasswordResetView.as_view( template_name="account/password_reset_form.html", email_template_name="account/password_reset_email.html"), name='password_reset'), path('/password_reset/done/', PasswordResetDoneView.as_view( template_name='account/password_reset_done.html'), name='password_reset_done'), path('accounts/reset/<uidb64>/<token>/', PasswordResetConfirmView.as_view( template_name='account/password_confirm.html'), name='password_reset_confirm'), path('password_change/', PasswordChangeView.as_view( template_name="account/password_change.html"), name='password_change'), path('password_change/done/', PasswordChangeDoneView.as_view( template_name='account/password_change_done.html'),