Posts

analyze.html

  <! DOCTYPE   html > < html   lang =" en "> < head >      < meta   charset =" UTF-8 ">      < meta   http-equiv =" X-UA-Compatible "   content =" IE=edge ">      < meta   name =" viewport "   content =" width=device-width, initial-scale=1.0 ">      < title > TextUtils </ title > </ head > < body >         < h1 > Your Analyzed Text = {{purpose}} </ h1 >      < p >         {{analyzed_text}}      </ p >      </ body > </ html >

index.html

  <! DOCTYPE   html > < html   lang =" en "> < head >      < meta   charset =" UTF-8 ">      < meta   http-equiv =" X-UA-Compatible "   content =" IE=edge ">      < meta   name =" viewport "   content =" width=device-width, initial-scale=1.0 ">      < title > Template is Working </ title > </ head > < body >      < h1 > Tushar is the best         {{name}} is from {{place}} <!-- this file has a connection from views.py-->               </ h1 > </ body > </ html > ////////////////////////////////////////////////////////// < h1 >     Welcome To The Text Analyzer   ...

views.py

# # I have Created This File  - Stark  from django.http import HttpResponse from  django . shortcuts  import  render # for using templates in django we use this in our projects ## def index(request): ##     return HttpResponse("Hare Krishana  <h1> Haridas </h1>") ## def about(request): ##     return HttpResponse("Hare Krishana about wala") ## def index(request): ##     return "Krishna" # def index(request): # it takes arguement request to perform the below task      # return HttpResponse('''Tushar Haridas \n            # ...

urls.py

  """ textutils URL Configuration The `urlpatterns` list routes URLs to views. For more information please see:     https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views     1. Add an import:  from my_app import views     2. Add a URL to urlpatterns:  path('', views.home, name='home') Class-based views     1. Add an import:  from other_app.views import Home     2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home') Including another URLconf     1. Import the include() function: from django.urls import include, path   ...