Render HTML using HttpResponse in Django
#render_html_using_httpresponse
#httpresponse
#django
#redirect
#django_project
#django_app
#django
#opensource_code
*****************************************************************
Step 1: Make a Urls.py file in App Folder
Step 2: Open Settings.py file present in Project's Folder
(NOTE) : Find Installed Apps, in that write
syntax : 'appName.apps.Class_AppName.Config',
Step 3: Open Views.py file :
(NOTE) : import HttpResponse
def index(request):
return HttpResponse("Hello World")
Step 4: Open urls.py present in App Folder :
(NOTE): from django.urls import path
urlpatterns = [
path(' ', views.index, name = "Home-page"),
]
Step 5: Open Urls.py present in Project's Folder :
(NOTE) : from django.urls import path, include
urlpatterns = [
path('myapps', include('MyApps.urls')),
]
Step 6: Run your development Server
command - python manage.py runserver
Step 7: Add Url which is present in your Project's Url
congratulations!!! Your HttpResponse Works
*************************************************************
------------------------------------------------------------------------------------------------------------------
This Channel Only Provides Syntax, Program and Different Operation in Different Terminology
------------------------------------------------------------------------------------------------------------------
OpenSource_Code
Social links
Instagram_id = nardekar45
linkedIn_id = linkedin.com/in/onkar-nardekar-b42742195
On this page of the site you can watch the video online Render HTML using HttpResponse in Django | OpenSource_Code with a duration of hours minute second in good quality, which was uploaded by the user Onkar Nardekar 06 April 2020, share the link with friends and acquaintances, this video has already been watched 539 times on youtube and it was liked by 6 viewers. Enjoy your viewing!