Skip to content

Instantly share code, notes, and snippets.

@DanyF-github
Created March 24, 2022 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanyF-github/733f328a954e70996d58702c89622a0e to your computer and use it in GitHub Desktop.
Save DanyF-github/733f328a954e70996d58702c89622a0e to your computer and use it in GitHub Desktop.
django.contrib.auth.views import LogoutView
from django.urls import path
from .views import AgentLoginView, AgentDashboardView
app_name = 'agent'
urlpatterns = [
path('login/', AgentLoginView.as_view(), name='agent_login'),
path('logout/', LogoutView.as_view(), name='agent_logout'),
path('dashboard/', AgentDashboardView.as_view(), name='agent_dashboard'),
]
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment