feat: Add hello endpoint to Django project
Related Issue(s):
Closes #1
What does this MR do?
Adds a simple "hello" endpoint at /hello/ that returns a plain text "hello" response. Introduces a new hello_view function directly in the main URLs configuration file.
Why was this MR needed?
Implements a basic endpoint as requested in issue #1, providing a foundation for API development and testing the Django application's routing functionality.
How was it implemented?
- Added
hello_viewfunction inmyproject/urls.pythat returns anHttpResponsewith "hello" text - Registered new URL pattern
/hello/pointing to the view function - Used minimal implementation approach by placing view directly in URLs file
How to test:
-
Start server:
python manage.py runserver -
Navigate to:
http://localhost:8000/hello/ - Verify: Page displays "hello" text
- Check: Response returns HTTP 200 status
Technical Notes:
Simple implementation using Django's HttpResponse for immediate functionality. View placed in URLs file for simplicity in this initial version.