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
Watch video Render HTML using HttpResponse in Django | OpenSource_Code online without registration, duration hours minute second in high quality. This video was added by user Onkar Nardekar 06 April 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 53 once and liked it people.