feat: Add hello endpoint to Django URLs
Related Issue(s):
Closes #1
What does this MR do?
Adds a simple "hello" endpoint at /hello/ that returns "hello" as an HTTP response. Creates a basic view function hello_view directly in the main URLs configuration.
Why was this MR needed?
Implements a basic endpoint for testing or demonstration purposes as requested in issue #1.
How was this implemented?
- Added
hello_viewfunction inmyproject/urls.pythat returnsHttpResponse("hello") - Registered new URL pattern
path('hello/', hello_view, name='hello') - Imported required
HttpResponsefromdjango.http
How to test:
- Start Django server:
python manage.py runserver - Navigate to
http://localhost:8000/hello/ - Verify page displays "hello" text
- Check that existing
/admin/endpoint still works