from django.conf.urls import url from jsonrpc import jsonrpc_site from core.views import index, Login, Logout, Register urlpatterns = [ url(r'^$', index), url(r'^login/$', Login.as_view(), name='login'), url(r'^logout/$', Logout.as_view(), name='logout'), url(r'^register/$', Register.as_view(), name='register'), url(r'^api/$', jsonrpc_site.dispatch, name="jsonrpc_mountpoint") ]
from django.contrib.auth import views as auth_views from core.views import Login, Logout, Home, Register from users.views import Index as UsersIndex, Create as UsersCreate from users.views import Update as UsersUpdate, UpdatePassword as UsersEditPassword from users.views import Delete as UsersDelete from groups.views import Index as GroupsIndex, Create as GroupsCreate from groups.views import Delete as GroupsDelete, Update as GroupsUpdate urlpatterns = [ # core path('home/', Home.as_view(), name='home'), path('login/', Login.as_view(), name='login'), path('logout/', Logout.as_view(), name='logout'), path('register/', Register.as_view(), name='register'), path('password_change/', auth_views.PasswordChangeView.as_view(), name='password_change'), path('password_change/done/', auth_views.PasswordChangeDoneView.as_view(), name='password_change_done'), path('password_reset/', auth_views.PasswordResetView.as_view(), name='password_reset'), path('password_reset/done/', auth_views.PasswordResetDoneView.as_view(), name='password_reset_done'), re_path(r'^resetar/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', auth_views.PasswordResetConfirmView.as_view(), name='password_reset_confirm'), path('reset/done/', auth_views.PasswordResetCompleteView.as_view(), name='password_reset_complete'), # admin path('admin/', admin.site.urls), # users path('users/', UsersIndex.as_view(), name='users_index'), path('users/new', UsersCreate.as_view(), name='users_new'), re_path('users/(?P<pk>\d+)/edit-password/', UsersEditPassword.as_view(), name='users_edit_password'), re_path('users/(?P<pk>\d+)/edit/', UsersUpdate.as_view(), name='users_update'), re_path('users/(?P<pk>\d+)/delete/', UsersDelete.as_view(), name='users_delete'),
""" from django.conf.urls.static import static from django.conf import settings from django.conf.urls import url from django.contrib import admin from django.urls import path, include from core.views import Home, TradeMarkView, Register, CheckoutView, ThankYouView urlpatterns = [ url(r'^admin/', admin.site.urls), path(r'', Home.as_view(), name='home'), path('trade_mark/<int:trade_mark_id>/', TradeMarkView.as_view(), name='trade_mark'), path('registration/', Register.as_view(), name='registration'), path('accounts/', include('django.contrib.auth.urls')), path('checkout/<int:product_id>/', CheckoutView.as_view(), name='checkout'), path('thanks/', ThankYouView.as_view(), name='thank_you') ] if settings.DEBUG: import debug_toolbar urlpatterns = [ path('__debug__/', include(debug_toolbar.urls)), # For django versions before 2.0: # url(r'^__debug__/', include(debug_toolbar.urls)), ] + urlpatterns
""" """ from django.urls import path from core.views import Login, Home, Register urlpatterns = [ path(r'login/', Login.as_view()), path(r'', Home.as_view()), path(r'register/', Register.as_view()), ]