Posts

Showing posts from August, 2020

Django Textutils Website (part 1) -4

  # url file part from django.contrib import admin from django.urls import path from . import views #NOTE THAT path('url a jai nam dakhabe sei nam or url a jai nam likhle ai page e jabe' , views.function name , name="ja iccha namedebo") urlpatterns = [ path( 'admin/' , admin.site.urls) , path( '' , views.index , name = "index1" ) , path( 'removepunc' , views.removepunc , name = "removepunc1" ) , path( 'capitalizedfirst' , views.capitalizedfirst , name = "capitalizedfirst1" ) , path( 'newlineremove' , views.newlineremove , name = "newlineremove1" ) , path( 'spaceremove' , views.spaceremove , name = "spaceremove1" ) , path( 'charcount' , views.charcount , name = "charcount1" ) ] #view part #read me #Akhon from thake deta nebo ar terminal a print korbo from django.http import HttpResponse from django.shortcuts import render def i...

Django template use -3

  # url file part # youtube fb and google access website from django.contrib import admin from django.urls import path from . import views #NOTE THAT path('url a jai nam dakhabe sei nam or url a jai nam likhle ai page e jabe' , views.function name , name="ja iccha namedebo") urlpatterns = [ path( 'admin/' , admin.site.urls) , path( '' , views.index , name = "index1" ) ] #view part #read me #open terminal command python manage.py runserver # views file create by munna # do that in settings.py file: # {'BACKEND': 'django.template.backends.django.DjangoTemplates', # 'DIRS': ['templates'],} # now do # Create a templates folder under textutilsa and inside that create html file from django.http import HttpResponse # Write that from django.shortcuts import render def index (request): #render ar 3 no argument holo pythondictionary jaita amra access korte pari html thake # mane html to python file link e...

Large Number among (3)-2

  x= int ( input ( "var1= " )) y= int ( input ( "var2= " )) z= int ( input ( "ver3= " )) def max_of_3 (x , y , z): return max_of_2(x , max_of_2(y , z)) def max_of_2 (x , y): if x>y: return x return y print (max_of_3(x , y , z))

Bootstrap Login from (part 1) -5

  <!-- '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' -->    < div   class = "container" >             <!-- From ar uporer line    -->      < h2 > Stacked form </ h2 >              <!-- submit korle jei page e jabe -->      < form   action = "https://www.youtube.com" >        < div   class = "form-group" >          <!-- protthekta ghor er uporer name -->          < label   for = "email" > Emai...

Bootstrap color -4

     < div   class = "container" >      < h2 > Contextual Colors </ h2 >      < p > Use the contextual classes to provide "meaning through colors": </ p >      < p   class = "text-muted" > gray </ p >      < p   class = "text-primary" > blue </ p >      < p   class = "text-success" > green </ p >      < p   class = "text-info" > light blue </ p >      < p   class = "text-warning" > yollow. </ p >      < p   class = "text-danger" > red </ p >      < p   class = "text-secondary" > light gray </ p >      < p   class = "text-dark" > dark grey. </ p > ...

Bootstrap topography or text editing method -3

    < div   class = "container" >      < h1 > Display Headings </ h1 >      < p > Display headings are used to stand out more than normal headings        (larger font-size and lighter font-weight): </ p >      < h1   class = "display-1" > Display 1  </ h1 >      < h1   class = "display-2" > Display 2 </ h1 >      < h1   class = "display-3" > Display 3 </ h1 >      < h1   class = "display-4" > Display 4 </ h1 >    </ div >       < div   class = "container" >      < h1 > Lighter, Secondary Text </ h1 >      < p > T...