You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
812 B
20 lines
812 B
from django.urls import path, re_path
|
|
from apps.user.views import (
|
|
RegisterView, ActiveView, LoginView, UserInfoView,
|
|
UserOrderView, UserSiteView, LogoutView
|
|
)
|
|
from apps.user import views
|
|
|
|
app_name = 'user'
|
|
|
|
urlpatterns = [
|
|
path('index/', views.index, name='index'),
|
|
path('register/', RegisterView.as_view(), name='register'), # Register
|
|
re_path(r'active/(?P<token>.*)/$', ActiveView.as_view(), name='active'), # User Activation
|
|
path('login/', LoginView.as_view(), name='login'), # Login
|
|
path('logout/', LogoutView.as_view(), name='logout'), # Logout
|
|
path('', UserInfoView.as_view(), name='user'), # User Info
|
|
re_path(r'^order/(?P<page>\d+)/$', UserOrderView.as_view(), name='order'), # Orders
|
|
path('address/', UserSiteView.as_view(), name='address'), # Address
|
|
]
|