| from django.contrib import admin |
| from chat.views import * |
| from django.urls import path |
| from django.conf import settings |
| from django.contrib.staticfiles.urls import static |
| from django.contrib.auth import views as auth_views |
|
|
| urlpatterns = [ |
| path("admin/", admin.site.urls), |
| path("", LoginPage, name="login"), |
| path("signup/", SignupPage, name="signup"), |
| path("logout/", LogoutPage, name="logout"), |
| path("user/", HomePage, name="home"), |
| path("edit/", EditProfile, name="edit"), |
| path("user/<str:username>/", userprofile, name="username"), |
| path("add_friend/", add_friend, name="add_friend"), |
| path("accept_request/", accept_request, name="accept_request"), |
| path("delete_friend/", delete_friend, name="delete_friend"), |
| path("search/", search, name="search"), |
| |
| path("test/", test, name="test"), |
| path("test/chat/", test_chat, name="test_chat"), |
| path("test/home/", test_home, name="test_home"), |
| path("test/login/", test_login, name="test_login"), |
| path("test/signup/", test_signup, name="test_signup"), |
| path("test/search/", test_search, name="test_search"), |
| path("test/profile/", test_profile, name="test_profile"), |
| path("test/settings/", test_settings, name="test_settings"), |
| |
| path("chat/<str:username>/", chat, name="chat"), |
| path( |
| "password-reset/", |
| CustomPasswordResetView.as_view(), |
| name="password_reset", |
| ), |
| path( |
| "password-reset/done/", |
| auth_views.PasswordResetDoneView.as_view( |
| template_name="./password/password_reset_done.html" |
| ), |
| name="password_reset_done", |
| ), |
| path( |
| "reset/<uidb64>/<token>/", |
| auth_views.PasswordResetConfirmView.as_view( |
| template_name="./password/password_reset_confirm.html" |
| ), |
| name="password_reset_confirm", |
| ), |
| path( |
| "reset/done/", |
| auth_views.PasswordResetCompleteView.as_view( |
| template_name="./password/password_reset_complete.html" |
| ), |
| name="password_reset_complete", |
| ), |
| ] |
|
|
|
|
| if settings.DEBUG: |
| urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) |
|
|