From fdb7255af3b98d975dcc73ae8848978c6bda82f5 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Sun, 14 Dec 2025 05:25:24 +0545 Subject: [PATCH] feat(api/base): Implement base home/login page This commit introduces the foundational home and login page for the API base application, establishing core routing and view logic. **New Features** * Added `urls.py` to define routing for the base API application. * Introduced `views.py` with a `home` view function. * Configured the root URL (`/`) to be served by the `home` view. * The `home` view is responsible for rendering the `base/login.html` template. --- src/api/base/urls.py | 5 +++++ src/api/base/views.py | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/api/base/urls.py b/src/api/base/urls.py index e69de29..97b69b9 100644 --- a/src/api/base/urls.py +++ b/src/api/base/urls.py @@ -0,0 +1,5 @@ +from django.urls import path + +from .views import home + +urlpatterns = [path("", home, name="home")] diff --git a/src/api/base/views.py b/src/api/base/views.py index e69de29..95b1bcb 100644 --- a/src/api/base/views.py +++ b/src/api/base/views.py @@ -0,0 +1,5 @@ +from django.shortcuts import render + + +def home(request): + return render(request, "base/login.html")