Files
DEMO-AGENT/config/urls.py

31 lines
964 B
Python

from django.contrib import admin
from django.contrib.auth.views import LoginView, LogoutView, PasswordChangeView
from django.urls import include, path
from review_agent.views import attachment_manager, stream_chat, workspace
urlpatterns = [
path("", workspace, name="home"),
path("attachments/", attachment_manager, name="attachment_manager"),
path("", include("review_agent.urls")),
path("chat/stream/", stream_chat, name="chat_stream"),
path(
"login/",
LoginView.as_view(
template_name="registration/login.html",
redirect_authenticated_user=True,
),
name="login",
),
path("logout/", LogoutView.as_view(), name="logout"),
path(
"password/change/",
PasswordChangeView.as_view(
template_name="registration/password_change.html",
success_url="/",
),
name="password_change",
),
path("admin/", admin.site.urls),
]