Skip to content

Commit

Permalink
Fork, Commit, Merge - Easy Issue (Django) fork-commit-merge#725 Resolved
Browse files Browse the repository at this point in the history
Added Hello, World! to the path: http://127.0.0.1:8000/hello/
  • Loading branch information
praptisharma28 committed Sep 30, 2023
1 parent abbc497 commit 61a6243
Show file tree
Hide file tree
Showing 16 changed files with 8 additions and 5 deletions.
Binary file modified tasks/django/easy/hello_world/db.sqlite3
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
5 changes: 3 additions & 2 deletions tasks/django/easy/hello_world/hello_world/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from django.urls import path, include

urlpatterns = [
path('admin/', admin.site.urls),
# TODO: Add /hello path
path('admin/',admin.site.urls),
path('hello/', include('hello_world_app.urls'))
]

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
5 changes: 3 additions & 2 deletions tasks/django/easy/hello_world/hello_world_app/urls.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from django.urls import path
from .views import hello_world
from hello_world_app import views

urlpatterns = [
path('', hello_world),
# path('admin/',admin.site.urls),
path('', views.hello_world, name='hello_world'),
]
3 changes: 2 additions & 1 deletion tasks/django/easy/hello_world/hello_world_app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

from django.http import HttpResponse


def hello_world(request):
# TODO: Add return statement
return HttpResponse("Hello, World!")

0 comments on commit 61a6243

Please sign in to comment.