Project_Camper/vagus/users/urls.py

13 lines
474 B
Python
Raw Permalink Normal View History

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
from django.contrib.auth.decorators import login_required
2021-01-27 20:09:55 +01:00
urlpatterns = [
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'),
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
]