from django.urls import path from projects.views import UserProfile from user.views import Login, RevokeToken, RefreshToken, SignUp, Activate, PasswordResetToken, PasswordReset, \ PasswordChange, UserDetails, CreateStudent, Resend, UpdateStudent, SearchUsers, UpdateUser urlpatterns = [ path('login/', Login.as_view(), name='login'), path('revoke/', RevokeToken.as_view(), name='revoke'), path('refresh/', RefreshToken.as_view(), name='refresh'), path('signup/', SignUp.as_view(), name='signup'), path('activate/', Activate.as_view(), name='activate'), path('password-reset-request/', PasswordResetToken.as_view(), name='password-reset-request'), path('password-reset/', PasswordReset.as_view(), name='password-reset'), path('password-change/', PasswordChange.as_view(), name='password-change'), path('me/', UserDetails.as_view(), name='me'), path('post-student-details/', CreateStudent.as_view(), name='post-student-details'), path('update-student-details/', UpdateStudent.as_view(), name='update-student-details'), path('resend/', Resend.as_view(), name='resend'), path('search-users/', SearchUsers.as_view(), name='search-users'), path('update-user/', UpdateUser.as_view(), name='update-user'), path('get-user-profile/', UserProfile.as_view(), name='get-user-profile'), ]
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import path from post.views import PostListCreate, PostDetailUpdateDelete, CommentCreate, CommentDelete, PostLike from user.views import Login, SignUp, UserUpdate, UserFollow, UserProfile, Search urlpatterns = [ path('admin/', admin.site.urls), path('search', Search.as_view()), path('post', PostListCreate.as_view()), path('post/<int:post_id>', PostDetailUpdateDelete.as_view()), path('post/<int:post_id>/like', PostLike.as_view()), path('auth', Login.as_view()), path('signup', SignUp.as_view()), path('user/<int:user_id>', UserUpdate.as_view()), path('user/<int:user_id>/detail', UserProfile.as_view()), path('user/<int:user_id>/follow', UserFollow.as_view()), path('comment', CommentCreate.as_view()), path('comment/<int:comment_id>', CommentDelete.as_view()) ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns = [ path('online-newspaper/admin/', admin.site.urls), path('i18n/', include('django.conf.urls.i18n')), path('translate/<str:language>', changeLanguage), path(r'summernote/', include('django_summernote.urls')), path('configuration/web', TemplateView.as_view(template_name='configuration/web_config.html')), path('configuration/mixed_articles', MixedArticles.as_view()), path('configuration/main_articles', MainArticles.as_view()), path( 'configuration/main_articles_form', TemplateView.as_view( template_name='configuration/main_articles_form.html')), path('', EnteryLanguageDetect.as_view()), path('user/signup', SignUp.as_view()), path('user/login', LogIn.as_view()), path('user/logout', LogOut.as_view()), path('user/edit', EditUser.as_view()), path('user/avataredit', UserAvatarEdit.as_view()), path('user/avatarremove', UserAvatarRemove.as_view()), path('admin/getusers', GetUsers.as_view()), path('admin/add/useringroup/<int:user_pk>/<str:group>', AddUserInGroup.as_view()), path('admin/remove/userfromgroup/<int:user_pk>/<str:group>', RemoveUserFromGroup.as_view()), path('group/adduser/<str:user_pk>/<str:group_pk>/', addUserToGroup), path('group/removeuser/<str:user_pk>/<str:group_pk>/', removeUserFromGroup), path('blacklist/emailisinblacklist', EmailIsInBlackList.as_view()), path('articlecategory/create',
from django.conf.urls import url from django.contrib.auth.views import LoginView, LogoutView from django.urls import path from user.views import SignUp app_name = 'user' urlpatterns = [ path('register/', SignUp.as_view(), name='register'), path('login/', LoginView.as_view(template_name='user/login.html'), name='login'), path('logout/', LogoutView.as_view(), name='logout') ]
from django.urls import path from user.views import SignIn, LogOut,\ SignUp, user_activate_by_email,\ ChangeUserInfoView, profile,\ PasswordChange app_name = 'accounts' urlpatterns = [ path('sign_in/', SignIn.as_view(), name='sign_in'), path('log_out/', LogOut.as_view(), name='log_out'), path('sign_up/', SignUp.as_view(), name='register'), path('user/profile/', profile, name='profile'), path('user/activate/<str:sign>/', user_activate_by_email, name='register_activate'), path('user/change/', ChangeUserInfoView.as_view(), name='change_info'), path('user/password/change/', PasswordChange.as_view(), name='password_change') ]
from django.urls import path from user.views import SignUp, LoginView app_name = 'user' urlpatterns = [ path('', SignUp.as_view()), path('/login', LoginView.as_view()), ]
#Django from django.urls import path #Views from user.views import SignUp from sales.views import MyPurchase, MySales urlpatterns = [ path('registrarse/', SignUp.as_view(), name='signup'), path('mis-compras/', MyPurchase.as_view(), name='my_purchases'), path('mis-ventas/', MySales.as_view(), name='my_sales'), ]