feat: Add hello world homepage endpoint
Related Issue(s):
Closes #1
What does this MR do?
Adds a simple "hello" endpoint at the root URL path that returns a basic HTTP response with "hello" text. This creates a functional homepage for the Django project.
Why was this MR needed?
The project previously had no content at the root URL, resulting in a 404 error when accessing the base domain. This basic endpoint provides a working homepage and demonstrates the application is running correctly.
How was it implemented?
- Added a simple
hello_viewfunction inmyproject/urls.pythat returns anHttpResponsewith "hello" text - Mapped this view to the root path
''in the URL patterns - Used inline implementation for simplicity since it's just a basic response
How to test:
- Start the Django development server:
python manage.py runserver - Navigate to
http://localhost:8000/in your browser - Verify the page displays "hello" text
- Confirm the admin panel still works at
http://localhost:8000/admin/