ttvdrops/config/urls.py
Joakim Hellsén faddc4c9b0 Implement user authentication system with custom user model, views, and templates
- Created custom User model extending Django's AbstractUser.
- Added user registration, login, and profile views with corresponding templates.
- Implemented user authentication functionality and integrated Bootstrap for styling.
- Updated project settings to use the new accounts app and user model.
- Added tests for user model and admin functionality.
2025-07-21 02:57:44 +02:00

20 lines
658 B
Python

from __future__ import annotations
from typing import TYPE_CHECKING
from debug_toolbar.toolbar import debug_toolbar_urls # pyright: ignore[reportMissingTypeStubs]
from django.conf import settings
from django.contrib import admin
from django.urls import include, path
if TYPE_CHECKING:
from django.urls.resolvers import URLResolver
urlpatterns: list[URLResolver] = [
path(route="admin/", view=admin.site.urls),
path(route="accounts/", view=include("accounts.urls", namespace="accounts")),
path(route="", view=include("twitch.urls", namespace="twitch")),
]
if not settings.TESTING:
urlpatterns = [*urlpatterns, *debug_toolbar_urls()]