fix: huge refactor
This commit is contained in:
+1
-17
@@ -14,15 +14,6 @@ from web.views.components import (
|
||||
wishlist_button,
|
||||
change_password_component,
|
||||
)
|
||||
from web.views.users import (
|
||||
login,
|
||||
logout,
|
||||
my_account,
|
||||
register,
|
||||
reset_password,
|
||||
reset_password_confirm,
|
||||
reset_password_email_sent,
|
||||
)
|
||||
from web.views.web import (
|
||||
add_cart_item,
|
||||
add_to_wishlist,
|
||||
@@ -48,14 +39,7 @@ i18n_resolvers = i18n_patterns(
|
||||
path(_('cart/'), cart_detail, name='cart_detail'),
|
||||
path(_('orders/'), login_required(orders, login_url=_('/login/')), name='orders'),
|
||||
path(_('order/<str:uuid>/'), order_detail, name='order'),
|
||||
# users
|
||||
path(_('login/'), login, name='login'),
|
||||
path(_('logout/'), logout, name='logout'),
|
||||
path(_('register/'), register, name='register'),
|
||||
path(_('reset-password/'), reset_password, name='reset_password'),
|
||||
path(_('reset-password/<uidb64>/<token>/'), reset_password_confirm, name='reset_password_confirm'),
|
||||
path(_('reset-password/email-sent/'), reset_password_email_sent, name='reset_password_email_sent'),
|
||||
path(_('my-account/'), login_required(my_account, login_url=_('/login/')), name='my_account'),
|
||||
|
||||
)
|
||||
|
||||
urlpatterns = [
|
||||
|
||||
Reference in New Issue
Block a user