2021-01-27 20:09:55 +01:00
|
|
|
from django.conf.urls import url
|
|
|
|
from django.urls import path
|
|
|
|
from django.conf.urls.static import static
|
|
|
|
from . import views
|
2021-02-05 18:05:47 +01:00
|
|
|
from django.contrib.auth.decorators import login_required
|
2021-01-27 20:09:55 +01:00
|
|
|
|
|
|
|
|
|
|
|
urlpatterns = [
|
2021-02-05 18:05:47 +01:00
|
|
|
path('profile', login_required(views.user_profile), name = 'profile_view'),
|
2021-01-27 20:09:55 +01:00
|
|
|
path('logout', views.logout_view, name ='logout_user'),
|
2021-02-05 18:05:47 +01:00
|
|
|
path('register',views.Register_View.as_view(), name = 'register'),
|
|
|
|
path('login',views.Login_View.as_view(),name = 'login'),
|
2021-01-27 20:09:55 +01:00
|
|
|
]
|