<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1219980476801326118</id><updated>2024-12-19T08:50:56.015+05:30</updated><category term="Machine Learning Theory"/><category term="Django"/><category term="Machine Learning Python"/><title type='text'>My Revision Web Page</title><subtitle type='html'>Machine Learning is a method of training a machine that learns from experiences to perform better and better.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://machlearn1.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='https://machlearn1.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Lakshman Jangid</name><uri>http://www.blogger.com/profile/09240524566513148282</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviy4krmI_Gana2qhmJFh2c5DGP3rIwhmFMnuv9z2biwRP9_DlT52ktuWG9Bt968Y6cPOGKM7YC0oRZi-oDdAKodIFSQ_hnLLMLB-7o-kPulOLtW7vQ28tTmfcQY1Vmg/s113/pp.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>55</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1219980476801326118.post-2895107719105323963</id><published>2022-01-31T18:02:00.002+05:30</published><updated>2022-01-31T18:02:29.626+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Django"/><title type='text'>Creating users (login and logout pages)</title><content type='html'>&lt;p&gt;*Create new project using command&lt;/p&gt;&lt;p&gt;django-admin startproject userproject&lt;/p&gt;&lt;p&gt;*Make migrations by running following commands,&lt;/p&gt;&lt;p&gt;python3 manage.py makemigrations&lt;/p&gt;&lt;p&gt;python3 manage.py migrate&lt;/p&gt;&lt;p&gt;* create an app name &quot;home&quot;&lt;/p&gt;&lt;p&gt;python3 manage.py startapp home&lt;/p&gt;&lt;p&gt;*Register your app by copying the app name from &quot;app.py&quot; and put it in &quot;settings.py&quot; of userproject.&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;div style=&quot;line-height: 19px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# websites which will use this projects&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #4fc1ff;&quot;&gt;ALLOWED_HOSTS&lt;/span&gt; = [&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;machlearn1.blogspot.com&#39;&lt;/span&gt;]&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #4fc1ff;&quot;&gt;INSTALLED_APPS&lt;/span&gt; = [&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;home.apps.HomeConfig&#39;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.admin&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.auth&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.contenttypes&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.sessions&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.messages&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.staticfiles&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;]&lt;/div&gt;&lt;/div&gt;&lt;p&gt;Create static and templates folder. Set static dir from &lt;a href=&quot;https://docs.djangoproject.com/en/4.0/howto/static-files/&quot; target=&quot;_blank&quot;&gt;site&lt;/a&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #4fc1ff;&quot;&gt;STATIC_URL&lt;/span&gt; = &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;/static/&#39;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# pasted from django website&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #4fc1ff;&quot;&gt;STATICFILES_DIRS&lt;/span&gt; = [&lt;/div&gt;&lt;div&gt;    os.path.join(&lt;span style=&quot;color: #4fc1ff;&quot;&gt;BASE_DIR&lt;/span&gt;,&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;static&#39;&lt;/span&gt;),&lt;/div&gt;&lt;div&gt;]&lt;/div&gt;&lt;/div&gt;&lt;p&gt;Set dir for templates too,&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #4fc1ff;&quot;&gt;TEMPLATES&lt;/span&gt; = [&lt;/div&gt;&lt;div&gt;    {&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;BACKEND&#39;&lt;/span&gt;: &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.template.backends.django.DjangoTemplates&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;DIRS&#39;&lt;/span&gt;: [&lt;span style=&quot;color: #4ec9b0;&quot;&gt;os&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;path&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;join&lt;/span&gt;(&lt;span style=&quot;color: #4fc1ff;&quot;&gt;BASE_DIR&lt;/span&gt;,&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;templates&#39;&lt;/span&gt;)],&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;APP_DIRS&#39;&lt;/span&gt;: &lt;span style=&quot;color: #569cd6;&quot;&gt;True&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;OPTIONS&#39;&lt;/span&gt;: {&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;context_processors&#39;&lt;/span&gt;: [&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.template.context_processors.debug&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.template.context_processors.request&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.auth.context_processors.auth&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.messages.context_processors.messages&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;            ],&lt;/div&gt;&lt;div&gt;        },&lt;/div&gt;&lt;div&gt;    },&lt;/div&gt;&lt;div&gt;]&lt;/div&gt;&lt;/div&gt;&lt;p&gt;Create an index.html file as a template.&lt;/p&gt;&lt;p&gt;In urls.py file of userproject,&amp;nbsp;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt; &lt;span style=&quot;color: #4ec9b0;&quot;&gt;django&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;contrib&lt;/span&gt; &lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #4ec9b0;&quot;&gt;admin&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt; &lt;span style=&quot;color: #4ec9b0;&quot;&gt;django&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;urls&lt;/span&gt; &lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #dcdcaa;&quot;&gt;path&lt;/span&gt;, &lt;span style=&quot;color: #dcdcaa;&quot;&gt;include&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;urlpatterns&lt;/span&gt; = [&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #dcdcaa;&quot;&gt;path&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;admin/&#39;&lt;/span&gt;, &lt;span style=&quot;color: #4ec9b0;&quot;&gt;admin&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;site&lt;/span&gt;.&lt;span style=&quot;color: #9cdcfe;&quot;&gt;urls&lt;/span&gt;),&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #dcdcaa;&quot;&gt;path&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;&#39;&lt;/span&gt;, &lt;span style=&quot;color: #dcdcaa;&quot;&gt;include&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;home.urls&#39;&lt;/span&gt;)),&lt;/div&gt;&lt;div&gt;]&lt;/div&gt;&lt;/div&gt;&lt;p&gt;Create urls.py file in the home folder,&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div style=&quot;line-height: 19px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt; &lt;span style=&quot;color: #4ec9b0;&quot;&gt;django&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;contrib&lt;/span&gt; &lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #4ec9b0;&quot;&gt;admin&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt; &lt;span style=&quot;color: #4ec9b0;&quot;&gt;django&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;urls&lt;/span&gt; &lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #dcdcaa;&quot;&gt;path&lt;/span&gt;, &lt;span style=&quot;color: #dcdcaa;&quot;&gt;include&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt; &lt;span style=&quot;color: #4ec9b0;&quot;&gt;home&lt;/span&gt; &lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #4ec9b0;&quot;&gt;views&lt;/span&gt; &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;urlpatterns&lt;/span&gt; = [&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #dcdcaa;&quot;&gt;path&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;&#39;&lt;/span&gt;, &lt;span style=&quot;color: #4ec9b0;&quot;&gt;views&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;index&lt;/span&gt;, &lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;home&#39;&lt;/span&gt;),&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #dcdcaa;&quot;&gt;path&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;login&#39;&lt;/span&gt;, &lt;span style=&quot;color: #4ec9b0;&quot;&gt;views&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;loginuser&lt;/span&gt;, &lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;login&#39;&lt;/span&gt;),&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #dcdcaa;&quot;&gt;path&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;logout&#39;&lt;/span&gt;, &lt;span style=&quot;color: #4ec9b0;&quot;&gt;views&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;logoutuser&lt;/span&gt;, &lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;logout&#39;&lt;/span&gt;),&lt;/div&gt;&lt;div&gt;]&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;create super user using command, &quot;python3 manage.py createsuperuser&quot;.&lt;/p&gt;&lt;p&gt;Now create index.html, login.html and logout.html files. views.py file of home will be as below,&lt;/p&gt;&lt;p&gt;index.html file&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;!&lt;/span&gt;DOCTYPE html&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;meta&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;charset&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;utf-8&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;meta&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;http-equiv&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;X-UA-Compatible&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;content&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;IE=edge&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Logged in User&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;meta&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;description&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;content&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;meta&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;viewport&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;content&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;width=device-width, initial-scale=1&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;link&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;rel&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;stylesheet&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;/div&gt;&lt;div&gt;        Welcome &lt;span style=&quot;color: #569cd6;&quot;&gt;{{ &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;request&lt;/span&gt;.&lt;span style=&quot;color: #ce9178;&quot;&gt;user&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; }}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            This is the best website in the world.&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;/logout&#39;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt; Logout &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;login.html&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;!&lt;/span&gt;doctype html&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;html&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;lang&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;en&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;meta&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;charset&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;utf-8&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;meta&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;viewport&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;content&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;width=device-width, initial-scale=1&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;meta&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;description&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;content&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;meta&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;author&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;content&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Mark Otto, Jacob Thornton, and Bootstrap contributors&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;meta&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;generator&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;content&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Hugo 0.88.1&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Login&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;link&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;rel&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;canonical&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;https://getbootstrap.com/docs/5.1/examples/sign-in/&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;    &lt;/div&gt;&lt;br /&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- Bootstrap core CSS --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;link&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/docs/5.1/dist/css/bootstrap.min.css&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;rel&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;stylesheet&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;integrity&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;crossorigin&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;anonymous&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- Favicons --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;link&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;rel&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;apple-touch-icon&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/docs/5.1/assets/img/favicons/apple-touch-icon.png&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;sizes&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;180x180&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;link&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;rel&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;icon&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/docs/5.1/assets/img/favicons/favicon-32x32.png&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;sizes&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;32x32&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;image/png&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;link&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;rel&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;icon&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/docs/5.1/assets/img/favicons/favicon-16x16.png&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;sizes&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;16x16&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;image/png&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;link&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;rel&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;manifest&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/docs/5.1/assets/img/favicons/manifest.json&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;link&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;rel&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;mask-icon&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/docs/5.1/assets/img/favicons/safari-pinned-tab.svg&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;color&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#7952b3&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;link&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;rel&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;icon&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/docs/5.1/assets/img/favicons/favicon.ico&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;meta&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;theme-color&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;content&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#7952b3&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;      .bd-placeholder-img {&lt;/div&gt;&lt;div&gt;        font-size: 1.125rem;&lt;/div&gt;&lt;div&gt;        text-anchor: middle;&lt;/div&gt;&lt;div&gt;        -webkit-user-select: none;&lt;/div&gt;&lt;div&gt;        -moz-user-select: none;&lt;/div&gt;&lt;div&gt;        user-select: none;&lt;/div&gt;&lt;div&gt;      }&lt;/div&gt;&lt;br /&gt;&lt;div&gt;      @media (min-width: 768px) {&lt;/div&gt;&lt;div&gt;        .bd-placeholder-img-lg {&lt;/div&gt;&lt;div&gt;          font-size: 3.5rem;&lt;/div&gt;&lt;div&gt;        }&lt;/div&gt;&lt;div&gt;      }&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;    &lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- Custom styles for this template --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;link&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;signin.css&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;rel&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;stylesheet&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;body&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;text-center&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;main&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;form-signin&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;form&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;method&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;post&#39;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;action&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;/login&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;csrf_token&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h1&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;h3 mb-3 fw-normal&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Please sign in&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h1&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;form-floating&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;input&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;text&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;form-control&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;username&#39;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;id&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;floatingInput&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;placeholder&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;name&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;label&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;for&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;floatingInput&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;User name&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;form-floating&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;input&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;password&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;form-control&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;password&#39;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;id&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;floatingPassword&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;placeholder&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Password&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;label&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;for&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;floatingPassword&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Password&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;checkbox mb-3&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;input&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;checkbox&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;value&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;remember-me&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt; Remember me&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;w-100 btn btn-lg btn-primary&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;submit&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Sign in&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;mt-5 mb-3 text-muted&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;&amp;amp;copy;&lt;/span&gt; 2017–2021&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;form&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;main&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;    &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;views.py file&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt; &lt;span style=&quot;color: #4ec9b0;&quot;&gt;django&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;shortcuts&lt;/span&gt; &lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #dcdcaa;&quot;&gt;render&lt;/span&gt;, &lt;span style=&quot;color: #dcdcaa;&quot;&gt;redirect&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt; &lt;span style=&quot;color: #4ec9b0;&quot;&gt;django&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;contrib&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;auth&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;models&lt;/span&gt; &lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #4ec9b0;&quot;&gt;User&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt; &lt;span style=&quot;color: #4ec9b0;&quot;&gt;django&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;contrib&lt;/span&gt;.&lt;span style=&quot;color: #4ec9b0;&quot;&gt;auth&lt;/span&gt; &lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #dcdcaa;&quot;&gt;logout&lt;/span&gt;, &lt;span style=&quot;color: #dcdcaa;&quot;&gt;authenticate&lt;/span&gt;, &lt;span style=&quot;color: #dcdcaa;&quot;&gt;login&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# password for test user divyababy&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# Create your views here.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;def&lt;/span&gt; &lt;span style=&quot;color: #dcdcaa;&quot;&gt;index&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;request&lt;/span&gt;):&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;request&lt;/span&gt;.user.is_anonymous:&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #dcdcaa;&quot;&gt;redirect&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;/login&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #dcdcaa;&quot;&gt;render&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;request&lt;/span&gt;,&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;index.html&#39;&lt;/span&gt;)&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;def&lt;/span&gt; &lt;span style=&quot;color: #dcdcaa;&quot;&gt;loginuser&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;request&lt;/span&gt;):&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;request&lt;/span&gt;.method == &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;POST&#39;&lt;/span&gt;:&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: #9cdcfe;&quot;&gt;username&lt;/span&gt; = &lt;span style=&quot;color: #9cdcfe;&quot;&gt;request&lt;/span&gt;.POST.get(&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;username&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: #9cdcfe;&quot;&gt;password&lt;/span&gt; = &lt;span style=&quot;color: #9cdcfe;&quot;&gt;request&lt;/span&gt;.POST.get(&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;password&#39;&lt;/span&gt;)&lt;/div&gt;&lt;br /&gt;&lt;div&gt;        &lt;span style=&quot;color: #6a9955;&quot;&gt;# checking for user details whether details are correct&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: #9cdcfe;&quot;&gt;user&lt;/span&gt; = &lt;span style=&quot;color: #dcdcaa;&quot;&gt;authenticate&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;username&lt;/span&gt;=&lt;span style=&quot;color: #9cdcfe;&quot;&gt;username&lt;/span&gt;,&lt;span style=&quot;color: #9cdcfe;&quot;&gt;password&lt;/span&gt;=&lt;span style=&quot;color: #9cdcfe;&quot;&gt;password&lt;/span&gt;)&lt;/div&gt;&lt;br /&gt;&lt;div&gt;        &lt;span style=&quot;color: #6a9955;&quot;&gt;# details are correct redirect to home page&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;user&lt;/span&gt; &lt;span style=&quot;color: #569cd6;&quot;&gt;is&lt;/span&gt; &lt;span style=&quot;color: #569cd6;&quot;&gt;not&lt;/span&gt; &lt;span style=&quot;color: #569cd6;&quot;&gt;None&lt;/span&gt;:&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: #dcdcaa;&quot;&gt;login&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;request&lt;/span&gt;,&lt;span style=&quot;color: #9cdcfe;&quot;&gt;user&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #dcdcaa;&quot;&gt;redirect&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;/&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: #c586c0;&quot;&gt;else&lt;/span&gt;:&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #dcdcaa;&quot;&gt;render&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;request&lt;/span&gt;,&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;login.html&#39;&lt;/span&gt;)&lt;/div&gt;&lt;br /&gt;&lt;div&gt;    &lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #dcdcaa;&quot;&gt;render&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;request&lt;/span&gt;, &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;login.html&#39;&lt;/span&gt;)&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;def&lt;/span&gt; &lt;span style=&quot;color: #dcdcaa;&quot;&gt;logoutuser&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;request&lt;/span&gt;):&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #dcdcaa;&quot;&gt;logout&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;request&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #dcdcaa;&quot;&gt;redirect&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;/login&#39;&lt;/span&gt;)&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://machlearn1.blogspot.com/feeds/2895107719105323963/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://machlearn1.blogspot.com/2022/01/creating-users-login-and-logout-pages.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/2895107719105323963'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/2895107719105323963'/><link rel='alternate' type='text/html' href='https://machlearn1.blogspot.com/2022/01/creating-users-login-and-logout-pages.html' title='Creating users (login and logout pages)'/><author><name>Lakshman Jangid</name><uri>http://www.blogger.com/profile/09240524566513148282</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviy4krmI_Gana2qhmJFh2c5DGP3rIwhmFMnuv9z2biwRP9_DlT52ktuWG9Bt968Y6cPOGKM7YC0oRZi-oDdAKodIFSQ_hnLLMLB-7o-kPulOLtW7vQ28tTmfcQY1Vmg/s113/pp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1219980476801326118.post-2389537190357900393</id><published>2022-01-15T20:01:00.004+05:30</published><updated>2022-01-15T22:05:10.548+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Django"/><title type='text'>Managing Data in Django (Database)</title><content type='html'>&lt;p&gt;&amp;nbsp;Create a model and then use migration.&lt;/p&gt;&lt;p&gt;The model defines the database.&lt;/p&gt;&lt;p&gt;In &quot;app&quot;&amp;nbsp; folder, open model.py file and modify it accordingly.&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt; django.db &lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt; models&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# Create your models here.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #4ec9b0;&quot;&gt;Contact&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;models.Model&lt;/span&gt;):&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;# use the field of form&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;# it is used for connection with dbms&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    name = models.CharField( &lt;span style=&quot;color: #9cdcfe;&quot;&gt;max_length&lt;/span&gt;=&lt;span style=&quot;color: #b5cea8;&quot;&gt;122&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;    email = models.CharField( &lt;span style=&quot;color: #9cdcfe;&quot;&gt;max_length&lt;/span&gt;=&lt;span style=&quot;color: #b5cea8;&quot;&gt;122&lt;/span&gt;) &lt;/div&gt;&lt;div&gt;    phone = models.CharField(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;max_length&lt;/span&gt;=&lt;span style=&quot;color: #b5cea8;&quot;&gt;12&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;    desc = models.TextField()&lt;/div&gt;&lt;div&gt;    date = models.DateField()&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;Now make migration, using command&lt;/p&gt;&lt;p&gt;&lt;b&gt;python3 manage.py makemigrations&lt;/b&gt;&lt;/p&gt;&lt;p&gt;After that, in admin.py register your model like this,&amp;nbsp;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt; django.contrib &lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt; admin&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt; home.models &lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt; Contact&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# Register your models here.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;admin.site.register(Contact)&lt;/div&gt;&lt;/div&gt;&lt;p&gt;From app.py, copy class name and then in settings.py file of main project, put it in installed apps. and save all this.&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;INSTALLED_APPS = [&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;home.apps.HomeConfig&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.admin&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.auth&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.contenttypes&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.sessions&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.messages&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.staticfiles&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;]&lt;/div&gt;&lt;/div&gt;&lt;p&gt;Now, make migrations. Now, it will show some changes. Migration is used to store data. Now run the command &quot;&amp;nbsp;&lt;b&gt;python3 manage.py migrate&lt;/b&gt; &quot;. It will create a table for you. Use &quot; http://127.0.0.1:8000/admin/ &quot; to check whether the Contact table is created or not.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Change views.py file to get data from the form,&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt; datetime &lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt; datetime&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt; home.models &lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt; Contact&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;def&lt;/span&gt; &lt;span style=&quot;color: #dcdcaa;&quot;&gt;contact&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;request&lt;/span&gt;):&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;# if form is posted then use it otherwise it will render&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt; request.method == &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;POST&#39;&lt;/span&gt;:&lt;/div&gt;&lt;div&gt;        name = request.POST.get(&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;name&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;        email = request.POST.get(&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;email&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;        phone = request.POST.get(&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;phone&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;        desc = request.POST.get(&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;desc&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;        contact = Contact(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;=name,&lt;span style=&quot;color: #9cdcfe;&quot;&gt;email&lt;/span&gt;=email,&lt;span style=&quot;color: #9cdcfe;&quot;&gt;phone&lt;/span&gt;=phone,&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;desc&lt;/span&gt;=desc,&lt;span style=&quot;color: #9cdcfe;&quot;&gt;date&lt;/span&gt;=datetime.today())&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: #6a9955;&quot;&gt;# to save data&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        contact.save()&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt; render(request,&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;contactus.html&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;# return HttpResponse(&#39;This is contact page&#39;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;Submit a form to see whether data is stored in a table or not using &quot;http://127.0.0.1:8000/admin/home/contact/&quot;.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;To get the contact details by name of the object, use the function below in the models.py file.&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #4ec9b0;&quot;&gt;Contact&lt;/span&gt;(&lt;span style=&quot;color: #4ec9b0;&quot;&gt;models.Model&lt;/span&gt;):&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;# use the field of form&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;# it is used for connection with dbms&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    name = models.CharField( &lt;span style=&quot;color: #9cdcfe;&quot;&gt;max_length&lt;/span&gt;=&lt;span style=&quot;color: #b5cea8;&quot;&gt;122&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;    email = models.CharField( &lt;span style=&quot;color: #9cdcfe;&quot;&gt;max_length&lt;/span&gt;=&lt;span style=&quot;color: #b5cea8;&quot;&gt;122&lt;/span&gt;) &lt;/div&gt;&lt;div&gt;    phone = models.CharField(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;max_length&lt;/span&gt;=&lt;span style=&quot;color: #b5cea8;&quot;&gt;12&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;    desc = models.TextField()&lt;/div&gt;&lt;div&gt;    date = models.DateField()&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;# it will show contacts by name in http://127.0.0.1:8000/admin/home/contact/&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #569cd6;&quot;&gt;def&lt;/span&gt; &lt;span style=&quot;color: #dcdcaa;&quot;&gt;__str__&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;self&lt;/span&gt;):&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #569cd6;&quot;&gt;self&lt;/span&gt;.name&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;To check whether the form is submitted or not, Copy &quot;&lt;span class=&quot;kn&quot; style=&quot;color: green; font-family: &amp;quot;Fira Mono&amp;quot;, Consolas, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 14px; font-variant-ligatures: no-common-ligatures; font-weight: bold; white-space: pre-wrap;&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;color: #0c4b33; font-family: &amp;quot;Fira Mono&amp;quot;, Consolas, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 14px; font-variant-ligatures: no-common-ligatures; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nn&quot; style=&quot;color: blue; font-family: &amp;quot;Fira Mono&amp;quot;, Consolas, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 14px; font-variant-ligatures: no-common-ligatures; font-weight: bold; white-space: pre-wrap;&quot;&gt;django.contrib.messages&lt;/span&gt;&lt;span style=&quot;color: #0c4b33; font-family: &amp;quot;Fira Mono&amp;quot;, Consolas, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 14px; font-variant-ligatures: no-common-ligatures; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kn&quot; style=&quot;color: green; font-family: &amp;quot;Fira Mono&amp;quot;, Consolas, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 14px; font-variant-ligatures: no-common-ligatures; font-weight: bold; white-space: pre-wrap;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;color: #0c4b33; font-family: &amp;quot;Fira Mono&amp;quot;, Consolas, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 14px; font-variant-ligatures: no-common-ligatures; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;color: #0c4b33; font-family: &amp;quot;Fira Mono&amp;quot;, Consolas, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 14px; font-variant-ligatures: no-common-ligatures; white-space: pre-wrap;&quot;&gt;constants&lt;/span&gt;&lt;span style=&quot;color: #0c4b33; font-family: &amp;quot;Fira Mono&amp;quot;, Consolas, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 14px; font-variant-ligatures: no-common-ligatures; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;k&quot; style=&quot;color: green; font-family: &amp;quot;Fira Mono&amp;quot;, Consolas, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 14px; font-variant-ligatures: no-common-ligatures; font-weight: bold; white-space: pre-wrap;&quot;&gt;as&lt;/span&gt;&lt;span style=&quot;color: #0c4b33; font-family: &amp;quot;Fira Mono&amp;quot;, Consolas, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 14px; font-variant-ligatures: no-common-ligatures; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;color: #0c4b33; font-family: &amp;quot;Fira Mono&amp;quot;, Consolas, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 14px; font-variant-ligatures: no-common-ligatures; white-space: pre-wrap;&quot;&gt;messages&lt;/span&gt;&quot; and paste it in the settings.py file.&amp;nbsp;&lt;/p&gt;&lt;p&gt;In the views.py file import messages like &quot;&amp;nbsp;&lt;span class=&quot;kn&quot; style=&quot;color: green; font-family: &amp;quot;Fira Mono&amp;quot;, Consolas, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 14px; font-variant-ligatures: no-common-ligatures; font-weight: bold; white-space: pre-wrap;&quot;&gt;from&lt;/span&gt;&lt;span style=&quot;color: #0c4b33; font-family: &amp;quot;Fira Mono&amp;quot;, Consolas, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 14px; font-variant-ligatures: no-common-ligatures; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nn&quot; style=&quot;color: blue; font-family: &amp;quot;Fira Mono&amp;quot;, Consolas, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 14px; font-variant-ligatures: no-common-ligatures; font-weight: bold; white-space: pre-wrap;&quot;&gt;django.contrib&lt;/span&gt;&lt;span style=&quot;color: #0c4b33; font-family: &amp;quot;Fira Mono&amp;quot;, Consolas, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 14px; font-variant-ligatures: no-common-ligatures; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kn&quot; style=&quot;color: green; font-family: &amp;quot;Fira Mono&amp;quot;, Consolas, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 14px; font-variant-ligatures: no-common-ligatures; font-weight: bold; white-space: pre-wrap;&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;color: #0c4b33; font-family: &amp;quot;Fira Mono&amp;quot;, Consolas, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 14px; font-variant-ligatures: no-common-ligatures; white-space: pre-wrap;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;color: #0c4b33; font-family: &amp;quot;Fira Mono&amp;quot;, Consolas, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 14px; font-variant-ligatures: no-common-ligatures; white-space: pre-wrap;&quot;&gt;messages&lt;/span&gt;&quot; then file will be&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt; django.shortcuts &lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt; render, HttpResponse&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt; datetime &lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt; datetime&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt; home.models &lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt; Contact&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt; django.contrib &lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt; messages&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# render for templates&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# Create your views here.&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;def&lt;/span&gt; &lt;span style=&quot;color: #dcdcaa;&quot;&gt;contact&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;request&lt;/span&gt;):&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;# if form is posted then use it otherwise it will render&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt; request.method == &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;POST&#39;&lt;/span&gt;:&lt;/div&gt;&lt;div&gt;        name = request.POST.get(&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;name&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;        email = request.POST.get(&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;email&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;        phone = request.POST.get(&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;phone&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;        desc = request.POST.get(&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;desc&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;        contact = Contact(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;=name,&lt;span style=&quot;color: #9cdcfe;&quot;&gt;email&lt;/span&gt;=email,&lt;span style=&quot;color: #9cdcfe;&quot;&gt;phone&lt;/span&gt;=phone,&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;desc&lt;/span&gt;=desc,&lt;span style=&quot;color: #9cdcfe;&quot;&gt;date&lt;/span&gt;=datetime.today())&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: #6a9955;&quot;&gt;# to save data&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        contact.save()&lt;/div&gt;&lt;div&gt;        messages.success(request, &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;Your form is submitted&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt; render(request,&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;contactus.html&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;# return HttpResponse(&#39;This is contact page&#39;)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;Edit base.html file like this,&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;!&lt;/span&gt;doctype html&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;html&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;lang&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;en&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- Required meta tags --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;meta&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;charset&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;utf-8&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;meta&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;viewport&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;content&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;width=device-width, initial-scale=1&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- Bootstrap CSS --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;link&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #9cdcfe;&quot;&gt;rel&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;stylesheet&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;integrity&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #9cdcfe;&quot;&gt;crossorigin&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;anonymous&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;  &lt;/div&gt;&lt;div&gt;    &lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;block&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;       &lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;endblock&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;        &lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;      &lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;nav&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;navbar navbar-expand-lg navbar-dark bg-dark&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;container-fluid&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;navbar-brand&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Ice-Cream&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;navbar-toggler&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-toggle&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;collapse&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-target&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#navbarSupportedContent&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-controls&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;navbarSupportedContent&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-expanded&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;false&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Toggle navigation&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;navbar-toggler-icon&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;collapse navbar-collapse&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;id&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;navbarSupportedContent&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;ul&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;navbar-nav me-auto mb-2 mb-lg-0&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;nav-item&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;nav-link active&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-current&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;page&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Home&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;nav-item&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;nav-link&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/about&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;About US&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;nav-item dropdown&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;nav-link dropdown-toggle&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/services&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;id&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;navbarDropdown&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: #9cdcfe;&quot;&gt;role&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-toggle&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;dropdown&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-expanded&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;false&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  Services&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;ul&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;dropdown-menu&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-labelledby&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;navbarDropdown&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;dropdown-item&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/services&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Ice-Cream&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;dropdown-item&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Softy&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;hr&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;dropdown-divider&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;dropdown-item&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Family Pack&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;ul&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;             &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;              &amp;lt;li class=&quot;nav-item&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;                &amp;lt;a class=&quot;nav-link disabled&quot;&amp;gt;Disabled&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;              &amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;              --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;nav-item&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;nav-link&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/contact&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Contact US&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;ul&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;form&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;d-flex&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;input&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;form-control me-2&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;search&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;placeholder&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Search&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Search&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn btn-outline-success&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;submit&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Search&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;form&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;nav&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;    &lt;/div&gt;&lt;div&gt;    &lt;/div&gt;&lt;div&gt;    &lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- To show success message --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;messages&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;for&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;message&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;in&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;messages&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;alert alert-&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{{ &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;message&lt;/span&gt;.&lt;span style=&quot;color: #ce9178;&quot;&gt;tags&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; }}&lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;role&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;alert&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: #569cd6;&quot;&gt;{{ &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;message&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; }}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!--&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;        &amp;lt;strong&amp;gt;Holy guacamole!&amp;lt;/strong&amp;gt; You should check in on some of those fields below.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;        --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn-close&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-dismiss&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;alert&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Close&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;endfor&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;endif&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;    &lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;block&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;endblock&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt; &lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- Optional JavaScript; choose one of the two! --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- Option 1: Bootstrap Bundle with Popper --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;script&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;src&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #9cdcfe;&quot;&gt;integrity&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #9cdcfe;&quot;&gt;crossorigin&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;anonymous&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- Option 2: Separate Popper and Bootstrap JS --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!--&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;    &amp;lt;script src=&quot;https://cdn.jsdelivr.net/npm/@popperjs/core@2.10.2/dist/umd/popper.min.js&quot; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;    integrity=&quot;sha384-7+zCNj/IqJ95wo16oMtfsKbZ9ccEh31eOz1HGyDuCQ6wgnyJNSYdrPa03rtR1zdB&quot; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;    crossorigin=&quot;anonymous&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;    &amp;lt;script src=&quot;https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.min.js&quot; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;    integrity=&quot;sha384-QJHtvGhmr9XOIpI6YVutG+2QOK9T+ZnN4kzFN1RtK3zEFEIsxhlmWl5/YESvpZ13&quot; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;    crossorigin=&quot;anonymous&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;    --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://machlearn1.blogspot.com/feeds/2389537190357900393/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://machlearn1.blogspot.com/2022/01/managing-data-in-django-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/2389537190357900393'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/2389537190357900393'/><link rel='alternate' type='text/html' href='https://machlearn1.blogspot.com/2022/01/managing-data-in-django-database.html' title='Managing Data in Django (Database)'/><author><name>Lakshman Jangid</name><uri>http://www.blogger.com/profile/09240524566513148282</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviy4krmI_Gana2qhmJFh2c5DGP3rIwhmFMnuv9z2biwRP9_DlT52ktuWG9Bt968Y6cPOGKM7YC0oRZi-oDdAKodIFSQ_hnLLMLB-7o-kPulOLtW7vQ28tTmfcQY1Vmg/s113/pp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1219980476801326118.post-3120129054049000646</id><published>2022-01-14T20:04:00.006+05:30</published><updated>2022-01-15T18:25:32.301+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Django"/><title type='text'>Django-admin (Template inheritance continued.....)</title><content type='html'>&lt;p&gt;To use a carousel picture from a folder, create a folder&amp;nbsp; &quot;img&quot; in the static folder and save images in .jfif format there.&lt;/p&gt;&lt;p&gt;&amp;nbsp;In index.html file give src as &quot;/static/img/img_name&quot;. Then, index.html file will be as below,&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;extends&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;base.html&#39;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;block&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;  %}&lt;/span&gt;  Home  &lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;endblock&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;  %}&lt;/span&gt; &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;block&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- my-4 for margin --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;container my-4&#39;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;id&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carouselExampleCaptions&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel slide&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-ride&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-indicators&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-target&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#carouselExampleCaptions&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-slide-to&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;0&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;active&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-current&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;true&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Slide 1&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-target&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#carouselExampleCaptions&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-slide-to&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;1&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Slide 2&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-target&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#carouselExampleCaptions&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-slide-to&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;2&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Slide 3&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-inner&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-item active&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- change size of image here 1200x500 --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;img&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;src&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/static/img/1.jfif&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;d-block w-100&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;alt&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;...&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-caption d-none d-md-block&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h5&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;First slide label&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h5&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Some representative placeholder content for the first slide.&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-item&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;img&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;src&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;https://source.unsplash.com/1200x500/?river&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;d-block w-100&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;alt&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;...&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-caption d-none d-md-block&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h5&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Second slide label&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h5&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Some representative placeholder content for the second slide.&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-item&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;img&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;src&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;https://source.unsplash.com/1200x500/?sun&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;d-block w-100&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;alt&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;...&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-caption d-none d-md-block&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h5&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Third slide label&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h5&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Some representative placeholder content for the third slide.&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-control-prev&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-target&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#carouselExampleCaptions&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-slide&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;prev&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-control-prev-icon&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-hidden&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;true&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;visually-hidden&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Previous&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-control-next&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-target&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#carouselExampleCaptions&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-slide&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;next&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-control-next-icon&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-hidden&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;true&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;visually-hidden&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Next&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;endblock&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;  &lt;/div&gt;&lt;/div&gt;&lt;p&gt;For using thumbnails, use code from &lt;a href=&quot;https://getbootstrap.com/docs/5.1/examples/album-rtl/&quot; target=&quot;_blank&quot;&gt;bootstrap&lt;/a&gt; and paste in index.html, which will be,&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;extends&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;base.html&#39;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;block&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;  %}&lt;/span&gt;  Home  &lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;endblock&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;  %}&lt;/span&gt; &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;block&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- my-4 for margin --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;container my-4&#39;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;id&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carouselExampleCaptions&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel slide&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-ride&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-indicators&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-target&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#carouselExampleCaptions&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-slide-to&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;0&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;active&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-current&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;true&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Slide 1&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-target&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#carouselExampleCaptions&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-slide-to&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;1&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Slide 2&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-target&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#carouselExampleCaptions&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-slide-to&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;2&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Slide 3&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-inner&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-item active&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- change size of image here 1200x500 --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;img&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;src&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/static/img/1.jfif&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;d-block w-100&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;alt&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;...&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-caption d-none d-md-block&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h5&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;First slide label&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h5&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Some representative placeholder content for the first slide.&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-item&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;img&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;src&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;https://source.unsplash.com/1200x500/?river&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;d-block w-100&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;alt&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;...&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-caption d-none d-md-block&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h5&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Second slide label&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h5&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Some representative placeholder content for the second slide.&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-item&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;img&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;src&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;https://source.unsplash.com/1200x500/?sun&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;d-block w-100&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;alt&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;...&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-caption d-none d-md-block&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h5&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Third slide label&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h5&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Some representative placeholder content for the third slide.&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-control-prev&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-target&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#carouselExampleCaptions&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-slide&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;prev&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-control-prev-icon&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-hidden&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;true&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;visually-hidden&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Previous&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-control-next&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-target&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#carouselExampleCaptions&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-slide&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;next&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-control-next-icon&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-hidden&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;true&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;visually-hidden&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Next&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!--Thumb nail from bootstrap --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;album py-5 bg-light &quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- my-3 for margin --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;container my-3&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- text-center to take text at center --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h1&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;my-2 text-center&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt; Select one from the below one &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h1&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;      &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;row row-cols-1 row-cols-sm-2 row-cols-md-3 g-3&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;col&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;card shadow-sm&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;svg&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;bd-placeholder-img card-img-top&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;width&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;height&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;225&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: #9cdcfe;&quot;&gt;xmlns&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;http://www.w3.org/2000/svg&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;role&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;img&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Placeholder: Thumbnail&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: #9cdcfe;&quot;&gt;preserveAspectRatio&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;xMidYMid slice&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;focusable&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;false&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Placeholder&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;rect&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;width&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;height&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;fill&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#55595c&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;rect&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;text&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;x&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;50%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;y&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;50%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;fill&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#eceeef&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;dy&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;.3em&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Thumbnail&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;svg&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;card-body&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;card-text&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;This is a wider card with supporting text below as a natural &lt;/div&gt;&lt;div&gt;                  lead-in to additional content. This content is a little bit longer.&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;d-flex justify-content-between align-items-center&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn-group&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn btn-sm btn-outline-secondary&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;View&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn btn-sm btn-outline-secondary&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Edit&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;small&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;text-muted&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;9 mins&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;small&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;col&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;card shadow-sm&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;svg&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;bd-placeholder-img card-img-top&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;width&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;height&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;225&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: #9cdcfe;&quot;&gt;xmlns&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;http://www.w3.org/2000/svg&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;role&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;img&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Placeholder: Thumbnail&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: #9cdcfe;&quot;&gt;preserveAspectRatio&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;xMidYMid slice&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;focusable&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;false&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Placeholder&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;rect&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;width&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;height&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;fill&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#55595c&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;rect&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;text&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;x&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;50%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;y&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;50%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;fill&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#eceeef&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;dy&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;.3em&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Thumbnail&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;svg&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;card-body&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;card-text&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;This is a wider card with supporting text below as a &lt;/div&gt;&lt;div&gt;                  natural lead-in to additional content. This content is a little bit longer.&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;d-flex justify-content-between align-items-center&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn-group&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn btn-sm btn-outline-secondary&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;View&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn btn-sm btn-outline-secondary&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Edit&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;small&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;text-muted&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;9 mins&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;small&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;col&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;card shadow-sm&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;svg&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;bd-placeholder-img card-img-top&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;width&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;height&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;225&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: #9cdcfe;&quot;&gt;xmlns&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;http://www.w3.org/2000/svg&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;role&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;img&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Placeholder: Thumbnail&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: #9cdcfe;&quot;&gt;preserveAspectRatio&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;xMidYMid slice&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;focusable&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;false&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Placeholder&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;rect&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;width&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;height&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;fill&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#55595c&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;rect&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;text&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;x&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;50%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;y&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;50%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;fill&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#eceeef&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;dy&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;.3em&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Thumbnail&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;svg&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;card-body&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;card-text&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;This is a wider card with supporting text below as a &lt;/div&gt;&lt;div&gt;                  natural lead-in to additional content. This content is a little bit longer.&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;d-flex justify-content-between align-items-center&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn-group&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn btn-sm btn-outline-secondary&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;View&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn btn-sm btn-outline-secondary&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Edit&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;small&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;text-muted&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;9 mins&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;small&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;col&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;card shadow-sm&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;svg&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;bd-placeholder-img card-img-top&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;width&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;height&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;225&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: #9cdcfe;&quot;&gt;xmlns&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;http://www.w3.org/2000/svg&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;role&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;img&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Placeholder: Thumbnail&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: #9cdcfe;&quot;&gt;preserveAspectRatio&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;xMidYMid slice&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;focusable&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;false&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Placeholder&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;rect&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;width&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;height&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;fill&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#55595c&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;rect&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;text&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;x&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;50%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;y&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;50%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;fill&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#eceeef&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;dy&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;.3em&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Thumbnail&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;svg&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;card-body&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;card-text&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;This is a wider card with supporting text below as a natural &lt;/div&gt;&lt;div&gt;                  lead-in to additional content. This content is a little bit longer.&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;d-flex justify-content-between align-items-center&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn-group&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn btn-sm btn-outline-secondary&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;View&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn btn-sm btn-outline-secondary&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Edit&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;small&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;text-muted&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;9 mins&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;small&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;col&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;card shadow-sm&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;svg&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;bd-placeholder-img card-img-top&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;width&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;height&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;225&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: #9cdcfe;&quot;&gt;xmlns&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;http://www.w3.org/2000/svg&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;role&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;img&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Placeholder: Thumbnail&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: #9cdcfe;&quot;&gt;preserveAspectRatio&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;xMidYMid slice&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;focusable&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;false&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Placeholder&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;rect&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;width&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;height&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;fill&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#55595c&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;rect&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;text&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;x&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;50%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;y&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;50%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;fill&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#eceeef&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;dy&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;.3em&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Thumbnail&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;svg&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;card-body&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;card-text&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;This is a wider card with supporting text below as a &lt;/div&gt;&lt;div&gt;                  natural lead-in to additional content. This content is a little bit longer.&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;d-flex justify-content-between align-items-center&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn-group&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn btn-sm btn-outline-secondary&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;View&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn btn-sm btn-outline-secondary&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Edit&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;small&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;text-muted&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;9 mins&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;small&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;col&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;card shadow-sm&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;svg&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;bd-placeholder-img card-img-top&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;width&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;height&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;225&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: #9cdcfe;&quot;&gt;xmlns&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;http://www.w3.org/2000/svg&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;role&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;img&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Placeholder: Thumbnail&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: #9cdcfe;&quot;&gt;preserveAspectRatio&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;xMidYMid slice&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;focusable&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;false&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Placeholder&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;rect&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;width&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;height&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;fill&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#55595c&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;rect&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;text&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;x&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;50%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;y&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;50%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;fill&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#eceeef&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;dy&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;.3em&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Thumbnail&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;svg&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;card-body&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;card-text&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;This is a wider card with supporting text below as a &lt;/div&gt;&lt;div&gt;                  natural lead-in to additional content. This content is a little bit longer.&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;d-flex justify-content-between align-items-center&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn-group&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn btn-sm btn-outline-secondary&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;View&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn btn-sm btn-outline-secondary&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Edit&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;small&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;text-muted&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;9 mins&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;small&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;col&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;card shadow-sm&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;svg&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;bd-placeholder-img card-img-top&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;width&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;height&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;225&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: #9cdcfe;&quot;&gt;xmlns&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;http://www.w3.org/2000/svg&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;role&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;img&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Placeholder: Thumbnail&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: #9cdcfe;&quot;&gt;preserveAspectRatio&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;xMidYMid slice&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;focusable&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;false&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Placeholder&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;rect&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;width&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;height&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;fill&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#55595c&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;rect&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;text&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;x&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;50%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;y&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;50%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;fill&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#eceeef&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;dy&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;.3em&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Thumbnail&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;svg&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;card-body&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;card-text&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;This is a wider card with supporting text below as a &lt;/div&gt;&lt;div&gt;                  natural lead-in to additional content. This content is a little bit longer.&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;d-flex justify-content-between align-items-center&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn-group&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn btn-sm btn-outline-secondary&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;View&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn btn-sm btn-outline-secondary&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Edit&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;small&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;text-muted&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;9 mins&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;small&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;col&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;card shadow-sm&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;svg&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;bd-placeholder-img card-img-top&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;width&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;height&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;225&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: #9cdcfe;&quot;&gt;xmlns&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;http://www.w3.org/2000/svg&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;role&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;img&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Placeholder: Thumbnail&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: #9cdcfe;&quot;&gt;preserveAspectRatio&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;xMidYMid slice&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;focusable&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;false&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Placeholder&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;rect&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;width&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;height&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;fill&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#55595c&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;rect&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;text&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;x&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;50%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;y&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;50%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;fill&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#eceeef&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;dy&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;.3em&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Thumbnail&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;svg&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;card-body&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;card-text&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;This is a wider card with supporting text below as a natural &lt;/div&gt;&lt;div&gt;                  lead-in to additional content. This content is a little bit longer.&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;d-flex justify-content-between align-items-center&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn-group&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn btn-sm btn-outline-secondary&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;View&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn btn-sm btn-outline-secondary&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Edit&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;small&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;text-muted&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;9 mins&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;small&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;col&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;card shadow-sm&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;svg&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;bd-placeholder-img card-img-top&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;width&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;height&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;225&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: #9cdcfe;&quot;&gt;xmlns&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;http://www.w3.org/2000/svg&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;role&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;img&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Placeholder: Thumbnail&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: #9cdcfe;&quot;&gt;preserveAspectRatio&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;xMidYMid slice&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;focusable&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;false&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Placeholder&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;rect&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;width&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;height&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;100%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;fill&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#55595c&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;rect&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;text&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;x&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;50%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;y&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;50%&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;fill&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#eceeef&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;dy&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;.3em&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Thumbnail&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;text&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;svg&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;card-body&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;card-text&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;This is a wider card with supporting text below as a natural &lt;/div&gt;&lt;div&gt;                  lead-in to additional content. This content is a little bit longer.&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;d-flex justify-content-between align-items-center&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn-group&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn btn-sm btn-outline-secondary&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;View&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn btn-sm btn-outline-secondary&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Edit&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;small&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;text-muted&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;9 mins&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;small&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;      &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;endblock&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;  &lt;/div&gt;&lt;/div&gt;&lt;p&gt;To use the image in a thumbnail, use image src tag in place of &quot;svg&quot; html tag.&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;img&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;src&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;https://source.unsplash.com/1200x900/?quantum&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;d-block w-100&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;alt&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;...&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;  &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;b&gt;Designing Contact us page:&lt;/b&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;extends&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;base.html&#39;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;block&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt; contact &lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;endblock&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;block&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;container&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;img&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;src&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;https://source.unsplash.com/1200x400/?contact-us&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;d-block&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;        w-100 my-4&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;alt&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;...&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h2&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;text-center&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        Contact Us&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h2&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- creating a contact form --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- Handling input data  --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;form&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;method&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;POST&#39;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;action&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;/contact&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!--  csrf_token is used to ensure that form is submitted by this webpage only --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- Form is not accessed by any other person like hackers --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;csrf_token&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;mb-3&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;label&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;for&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;exampleFormControlInput1&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;form-label&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Email address&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;input&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;email&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;form-control&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;id&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;exampleFormControlInput1&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;email&#39;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;placeholder&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;name@example.com&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;mb-3&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;label&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;for&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;exampleFormControlInput1&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;form-label&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Name&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;input&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;name&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;form-control&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;id&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;exampleFormControlInput1&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;name&#39;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;placeholder&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Your Name&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;mb-3&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;label&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;for&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;exampleFormControlInput1&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;form-label&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Phone Number&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;input&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;phone2numeric&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;form-control&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;id&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;exampleFormControlInput1&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;phone&#39;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;placeholder&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;0123456789&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;mb-3&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;label&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;for&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;exampleFormControlTextarea1&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;form-label&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Example&lt;/div&gt;&lt;div&gt;            text area [What u want to contact for....]&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;textarea&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;form-control&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;id&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;exampleFormControlTextarea1&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;desc&#39;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;rows&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;3&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;textarea&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;form&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn btn-primary&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Submit&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;endblock&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='https://machlearn1.blogspot.com/feeds/3120129054049000646/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://machlearn1.blogspot.com/2022/01/django-admin-template-inheritance_14.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/3120129054049000646'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/3120129054049000646'/><link rel='alternate' type='text/html' href='https://machlearn1.blogspot.com/2022/01/django-admin-template-inheritance_14.html' title='Django-admin (Template inheritance continued.....)'/><author><name>Lakshman Jangid</name><uri>http://www.blogger.com/profile/09240524566513148282</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviy4krmI_Gana2qhmJFh2c5DGP3rIwhmFMnuv9z2biwRP9_DlT52ktuWG9Bt968Y6cPOGKM7YC0oRZi-oDdAKodIFSQ_hnLLMLB-7o-kPulOLtW7vQ28tTmfcQY1Vmg/s113/pp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1219980476801326118.post-328866149971466781</id><published>2022-01-14T20:03:00.003+05:30</published><updated>2022-01-14T20:26:13.718+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Django"/><title type='text'>Django-admin (Template inheritance)</title><content type='html'>&lt;p&gt;&amp;nbsp;#creating superuser&lt;/p&gt;
&lt;div&gt;
&lt;pre&gt;    &lt;code&gt;
    &lt;p&gt;python3 manage.py createsuperuser&lt;/p&gt;
	&lt;/code&gt;    
&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;# it will ask some values as below,&lt;/p&gt;
&lt;p&gt;(password is case-sensitive)&lt;/p&gt;
&lt;div&gt;
&lt;pre&gt;    &lt;code&gt;
    
    &lt;p&gt;Username (leave blank to use &#39;lakshman&#39;): admin&amp;nbsp; &amp;nbsp;&lt;/p&gt;	
	&lt;p&gt;Email address:&amp;nbsp;&lt;/p&gt;
	&lt;p&gt;Password:&amp;nbsp;&lt;/p&gt;
	&lt;p&gt;Password (again):&amp;nbsp;&lt;/p&gt;
	&lt;p&gt;The password is too similar to the username.&lt;/p&gt;
	&lt;p&gt;This password is too short. It must contain at least 8 characters.&lt;/p&gt;
	&lt;p&gt;This password is too common.&lt;/p&gt;
	&lt;p&gt;Bypass password validation and create user anyway? [y/N]: y&lt;/p&gt;
	&lt;p&gt;Superuser created successfully.&lt;/p&gt;

	&lt;/code&gt;    
&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;
Now, we can login to django-admin using address &quot;http://127.0.0.1:8000/admin/&quot; &lt;br /&gt;
To Change django administration text, Use code below in urls.py of main project file.&lt;br /&gt;
And change the code according to ur choice

  
&lt;/p&gt;&lt;div&gt;
&lt;pre&gt;    &lt;code&gt;
    &lt;p&gt;# to change admin text &lt;br /&gt;
admin.site.site_header = &quot;LMJ Ice-cream Admin&quot; &lt;br /&gt;
admin.site.site_title = &quot;Ice-cream Admin Portal&quot; &lt;br /&gt;
admin.site.index_title = &quot;Welcome to Ice-cream Researcher Portal&quot; &lt;br /&gt;
&lt;/p&gt;
	&lt;/code&gt;    
&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;
  &lt;b&gt;Inheretance in html templates&lt;/b&gt;&lt;br /&gt;
  Create a new base.html file in template folder. &lt;br /&gt;
  Now, copy paste code from index.html code.&lt;br /&gt;
  Use {% block body %}{% endblock body %} below nav tag, and use {% block title %}{% endblock title %} like below &lt;br /&gt;
&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;!&lt;/span&gt;doctype html&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;html&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;lang&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;en&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- Required meta tags --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;meta&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;charset&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;utf-8&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;meta&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;viewport&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;content&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;width=device-width, initial-scale=1&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- Bootstrap CSS --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;link&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #9cdcfe;&quot;&gt;rel&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;stylesheet&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;integrity&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #9cdcfe;&quot;&gt;crossorigin&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;anonymous&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;  &lt;/div&gt;&lt;div&gt;    &lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;block&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;       &lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;endblock&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;        &lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;      &lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;nav&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;navbar navbar-expand-lg navbar-dark bg-dark&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;container-fluid&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;navbar-brand&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Ice-Cream&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;navbar-toggler&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;data-bs-toggle&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;collapse&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-target&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#navbarSupportedContent&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;aria-controls&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;navbarSupportedContent&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-expanded&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;false&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Toggle navigation&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;navbar-toggler-icon&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;collapse navbar-collapse&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;id&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;navbarSupportedContent&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;ul&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;navbar-nav me-auto mb-2 mb-lg-0&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;nav-item&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;nav-link active&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-current&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;page&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Home&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;nav-item&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;nav-link&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/about&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;About US&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;nav-item dropdown&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;nav-link dropdown-toggle&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/services&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;id&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;navbarDropdown&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: #9cdcfe;&quot;&gt;role&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-toggle&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;dropdown&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-expanded&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;false&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  Services&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;ul&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;dropdown-menu&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-labelledby&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;navbarDropdown&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;dropdown-item&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/services&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Ice-Cream&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;dropdown-item&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Softy&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;hr&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;dropdown-divider&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;dropdown-item&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Family Pack&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;ul&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;             &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;              &amp;lt;li class=&quot;nav-item&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;                &amp;lt;a class=&quot;nav-link disabled&quot;&amp;gt;Disabled&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;              &amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;              --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;nav-item&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;nav-link&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/contact&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Contact US&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;ul&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;form&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;d-flex&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;input&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;form-control me-2&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;search&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;placeholder&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Search&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Search&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn btn-outline-success&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;submit&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Search&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;form&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;nav&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;    &lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;block&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;endblock&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt; &lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- Optional JavaScript; choose one of the two! --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- Option 1: Bootstrap Bundle with Popper --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;script&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;src&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #9cdcfe;&quot;&gt;integrity&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #9cdcfe;&quot;&gt;crossorigin&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;anonymous&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- Option 2: Separate Popper and Bootstrap JS --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!--&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;    &amp;lt;script src=&quot;https://cdn.jsdelivr.net/npm/@popperjs/core@2.10.2/dist/umd/popper.min.js&quot; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;    integrity=&quot;sha384-7+zCNj/IqJ95wo16oMtfsKbZ9ccEh31eOz1HGyDuCQ6wgnyJNSYdrPa03rtR1zdB&quot; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;    crossorigin=&quot;anonymous&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;    &amp;lt;script src=&quot;https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.min.js&quot; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;    integrity=&quot;sha384-QJHtvGhmr9XOIpI6YVutG+2QOK9T+ZnN4kzFN1RtK3zEFEIsxhlmWl5/YESvpZ13&quot; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;    crossorigin=&quot;anonymous&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;    --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;Change index.html file like this&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;extends&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;base.html&#39;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;block&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;  %}&lt;/span&gt;  Home  &lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;endblock&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;  %}&lt;/span&gt; &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;block&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;This is body bock &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;endblock&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;  &lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;Create a contactus.html, about.html and services.html file in templates&lt;/p&gt;&lt;p&gt;contactus.html will look like this,&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;extends&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;base.html&#39;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;block&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;  %}&lt;/span&gt;  contact  &lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;endblock&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;  %}&lt;/span&gt; &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;block&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;This is contact us page. &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;endblock&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;  &lt;/div&gt;&lt;/div&gt;&lt;p&gt;about.html will look like this,&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;extends&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;base.html&#39;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;block&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;  %}&lt;/span&gt;  About  &lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;endblock&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;  %}&lt;/span&gt; &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;block&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;This is About us page. &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;endblock&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;  &lt;/div&gt;&lt;/div&gt;&lt;p&gt;services.html will look like this,&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;extends&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;base.html&#39;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;block&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;  %}&lt;/span&gt;  Services  &lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;endblock&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;  %}&lt;/span&gt; &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;block&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;This is Services page. &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;endblock&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;  &lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Now change the view.py file as shown&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt; django.shortcuts &lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt; render, HttpResponse&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# render for templates&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# Create your views here.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;def&lt;/span&gt; &lt;span style=&quot;color: #dcdcaa;&quot;&gt;index&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;request&lt;/span&gt;):&lt;/div&gt;&lt;div&gt;    context = {&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;variable&#39;&lt;/span&gt;:&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;This is sent&#39;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    }&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt; render(request,&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;index.html&#39;&lt;/span&gt;,context)&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;# return HttpResponse(&#39;This is home page&#39;)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;def&lt;/span&gt; &lt;span style=&quot;color: #dcdcaa;&quot;&gt;about&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;request&lt;/span&gt;):&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt; render(request,&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;about.html&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;# return HttpResponse(&#39;This is about page&#39;)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;def&lt;/span&gt; &lt;span style=&quot;color: #dcdcaa;&quot;&gt;services&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;request&lt;/span&gt;):&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt; render(request,&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;services.html&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;# return HttpResponse(&#39;This is services page&#39;)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;def&lt;/span&gt; &lt;span style=&quot;color: #dcdcaa;&quot;&gt;contact&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;request&lt;/span&gt;):&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt; render(request,&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;contactus.html&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;# return HttpResponse(&#39;This is contact page&#39;)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;d-md-flex flex-md-row-reverse align-items-center justify-content-between&quot; style=&quot;align-items: center; background-color: white; box-sizing: border-box; color: #212529; display: flex; flex-direction: row-reverse; justify-content: space-between;&quot;&gt;&lt;h1 class=&quot;bd-title&quot; id=&quot;content&quot; style=&quot;box-sizing: border-box; font-family: system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Noto Sans&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-weight: 500; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 class=&quot;bd-title&quot; id=&quot;content&quot; style=&quot;box-sizing: border-box; font-family: system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Noto Sans&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-weight: 500; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 class=&quot;bd-title&quot; id=&quot;content&quot; style=&quot;box-sizing: border-box; font-family: system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Noto Sans&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-weight: 500; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 class=&quot;bd-title&quot; id=&quot;content&quot; style=&quot;box-sizing: border-box; font-family: system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Noto Sans&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-weight: 500; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 class=&quot;bd-title&quot; id=&quot;content&quot; style=&quot;box-sizing: border-box; font-family: system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, &amp;quot;Helvetica Neue&amp;quot;, Arial, &amp;quot;Noto Sans&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-weight: 500; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 class=&quot;bd-title&quot; id=&quot;content&quot; style=&quot;box-sizing: border-box; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: small; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 class=&quot;bd-title&quot; id=&quot;content&quot; style=&quot;box-sizing: border-box; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: small; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 class=&quot;bd-title&quot; id=&quot;content&quot; style=&quot;box-sizing: border-box; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: small; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 class=&quot;bd-title&quot; id=&quot;content&quot; style=&quot;box-sizing: border-box; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: small; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 class=&quot;bd-title&quot; id=&quot;content&quot; style=&quot;box-sizing: border-box; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: small; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 class=&quot;bd-title&quot; id=&quot;content&quot; style=&quot;box-sizing: border-box; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: small; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 class=&quot;bd-title&quot; id=&quot;content&quot; style=&quot;box-sizing: border-box; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: small; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 class=&quot;bd-title&quot; id=&quot;content&quot; style=&quot;box-sizing: border-box; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: small; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 class=&quot;bd-title&quot; id=&quot;content&quot; style=&quot;box-sizing: border-box; line-height: 1.2; margin-bottom: 0.5rem; margin-top: 0px;&quot;&gt;&lt;span style=&quot;font-family: inherit; font-size: small; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h1&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Adding&amp;nbsp;&lt;span style=&quot;background-color: white; color: #212529; font-family: inherit;&quot;&gt;Carousel:&amp;nbsp; A slideshow component for cycling through elements—images or slides of text—like a carousel. Copy code from&amp;nbsp;&lt;a href=&quot;https://getbootstrap.com/docs/5.1/components/carousel/&quot; target=&quot;_blank&quot;&gt;site&lt;/a&gt;&amp;nbsp;and paste it in index.html file. The file will look like this,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: white; color: #212529; font-family: inherit;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;extends&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;base.html&#39;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;block&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;  %}&lt;/span&gt;  Home  &lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;endblock&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;  %}&lt;/span&gt; &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;block&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;container&#39;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;id&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carouselExampleCaptions&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel slide&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;data-bs-ride&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-indicators&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-target&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#carouselExampleCaptions&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-slide-to&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;0&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;active&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-current&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;true&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Slide 1&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-target&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#carouselExampleCaptions&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-slide-to&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;1&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Slide 2&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-target&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#carouselExampleCaptions&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-slide-to&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;2&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Slide 3&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-inner&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-item active&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;img&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;src&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;...&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;d-block w-100&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;alt&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;...&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-caption d-none d-md-block&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h5&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;First slide label&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h5&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Some representative placeholder content for the first slide.&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-item&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;img&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;src&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;...&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;d-block w-100&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;alt&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;...&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-caption d-none d-md-block&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h5&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Second slide label&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h5&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Some representative placeholder content for the second slide.&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;  &lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-item&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;img&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;src&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;...&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;d-block w-100&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;alt&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;...&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-caption d-none d-md-block&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h5&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Third slide label&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h5&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Some representative placeholder content for the third slide.&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-control-prev&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;data-bs-target&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#carouselExampleCaptions&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-slide&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;prev&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-control-prev-icon&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-hidden&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;true&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;visually-hidden&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Previous&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-control-next&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;data-bs-target&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#carouselExampleCaptions&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-slide&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;next&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-control-next-icon&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-hidden&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;true&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;visually-hidden&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Next&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;endblock&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;  &lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;color: #212529;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Put &lt;a href=&quot;https://source.unsplash.com/1200x500/?nature,water&quot; target=&quot;_blank&quot;&gt;link&lt;/a&gt; in src option and give margin so that image can be adjusted. Now, index.html file will look like this one. You can change the link according to urself.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;extends&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;base.html&#39;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;block&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;  %}&lt;/span&gt;  Home  &lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;endblock&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;  %}&lt;/span&gt; &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;block&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- my-4 for margin --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;container my-4&#39;&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;id&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carouselExampleCaptions&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel slide&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;data-bs-ride&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-indicators&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-target&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#carouselExampleCaptions&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-slide-to&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;0&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;active&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-current&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;true&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Slide 1&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-target&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#carouselExampleCaptions&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-slide-to&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;1&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Slide 2&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-target&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#carouselExampleCaptions&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-slide-to&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;2&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Slide 3&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-inner&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-item active&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- change size of image here 1200x500 --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;img&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;src&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;https://source.unsplash.com/1200x500/?nature,water&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;d-block w-100&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;alt&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;...&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-caption d-none d-md-block&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h5&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;First slide label&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h5&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Some representative placeholder content for the first slide.&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-item&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;img&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;src&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;https://source.unsplash.com/1200x500/?nature&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;d-block w-100&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;alt&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;...&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-caption d-none d-md-block&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h5&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Second slide label&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h5&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Some representative placeholder content for the second slide.&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-item&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;img&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;src&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;https://source.unsplash.com/1200x500/?sun&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;d-block w-100&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;alt&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;...&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-caption d-none d-md-block&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h5&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Third slide label&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;h5&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Some representative placeholder content for the third slide.&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-control-prev&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;data-bs-target&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#carouselExampleCaptions&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-slide&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;prev&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-control-prev-icon&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-hidden&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;true&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;visually-hidden&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Previous&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-control-next&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;data-bs-target&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#carouselExampleCaptions&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-slide&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;next&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;carousel-control-next-icon&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-hidden&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;true&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;visually-hidden&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Next&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;{% &lt;/span&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;endblock&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; %}&lt;/span&gt;  &lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  </content><link rel='replies' type='application/atom+xml' href='https://machlearn1.blogspot.com/feeds/328866149971466781/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://machlearn1.blogspot.com/2022/01/django-admin-template-inheritance.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/328866149971466781'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/328866149971466781'/><link rel='alternate' type='text/html' href='https://machlearn1.blogspot.com/2022/01/django-admin-template-inheritance.html' title='Django-admin (Template inheritance)'/><author><name>Lakshman Jangid</name><uri>http://www.blogger.com/profile/09240524566513148282</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviy4krmI_Gana2qhmJFh2c5DGP3rIwhmFMnuv9z2biwRP9_DlT52ktuWG9Bt968Y6cPOGKM7YC0oRZi-oDdAKodIFSQ_hnLLMLB-7o-kPulOLtW7vQ28tTmfcQY1Vmg/s113/pp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1219980476801326118.post-6052045182318777694</id><published>2022-01-14T20:02:00.003+05:30</published><updated>2022-01-14T20:02:26.367+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Django"/><title type='text'>Migration</title><content type='html'>&lt;p&gt;# create new app&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
		&lt;pre&gt;		&lt;code&gt;

&lt;p&gt;&lt;span style=&quot;background-color: #f0f0f0; color: #444444; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 12px; text-align: justify; white-space: pre;&quot;&gt;django-admin startapp myapp&lt;/span&gt;&lt;/p&gt;
&lt;/code&gt;    
		&lt;/pre&gt;
	&lt;/div&gt;


&lt;p&gt;# In myapp folder, create urls.py like this&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt; django.contrib &lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt; admin&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt; django.urls &lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt; path&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;# home is name of myapp&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt; home &lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt; views &lt;/div&gt;&lt;br /&gt;&lt;div&gt;urlpatterns = [&lt;/div&gt;&lt;div&gt;    path(&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;&#39;&lt;/span&gt;, views.index, &lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;home&#39;&lt;/span&gt;),&lt;/div&gt;&lt;div&gt;    path(&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;about&#39;&lt;/span&gt;, views.about, &lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;about&#39;&lt;/span&gt;),&lt;/div&gt;&lt;div&gt;    path(&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;services&#39;&lt;/span&gt;, views.services, &lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;services&#39;&lt;/span&gt;),&lt;/div&gt;&lt;div&gt;    path(&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;contact&#39;&lt;/span&gt;, views.contact, &lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;contact&#39;&lt;/span&gt;),&lt;/div&gt;&lt;div&gt;]&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;# In views.py file, create functions as below,&lt;/p&gt;&lt;p&gt;Use &quot;HttpResponse&quot; for output without using a template&lt;/p&gt;&lt;p&gt;Use &quot;render&quot; for output using a template&amp;nbsp;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt; django.shortcuts &lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt; render, HttpResponse&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# render for templates&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# Create your views here.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;def&lt;/span&gt; &lt;span style=&quot;color: #dcdcaa;&quot;&gt;index&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;request&lt;/span&gt;):&lt;/div&gt;&lt;div&gt;    context = {&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;variable&#39;&lt;/span&gt;:&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;This is sent&#39;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    }&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt; render(request,&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;index.html&#39;&lt;/span&gt;,context)&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;# return HttpResponse(&#39;This is home page&#39;)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;def&lt;/span&gt; &lt;span style=&quot;color: #dcdcaa;&quot;&gt;about&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;request&lt;/span&gt;):&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt; HttpResponse(&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;This is about page&#39;&lt;/span&gt;)&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;def&lt;/span&gt; &lt;span style=&quot;color: #dcdcaa;&quot;&gt;services&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;request&lt;/span&gt;):&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt; HttpResponse(&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;This is services page&#39;&lt;/span&gt;)&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;def&lt;/span&gt; &lt;span style=&quot;color: #dcdcaa;&quot;&gt;contact&lt;/span&gt;(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;request&lt;/span&gt;):&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #c586c0;&quot;&gt;return&lt;/span&gt; HttpResponse(&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;This is contact page&#39;&lt;/span&gt;)&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;Save all these files.&lt;/p&gt;&lt;p&gt;# Creae a new index.html file that will show some text as output.&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;!&lt;/span&gt;DOCTYPE html&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;meta&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;charset&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;utf-8&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;meta&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;viewport&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;content&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;width=device-width, initial-scale=1&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;This is a test Page&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    Welcome here............................... &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    Hey how are UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU? &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    variable value is &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #569cd6;&quot;&gt;{{ &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;variable&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt; }}&lt;/span&gt; &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;b&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        lorem455&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;# to give better look, use &lt;b&gt;bootstrap &lt;/b&gt;from&amp;nbsp;&lt;a href=&quot;https://getbootstrap.com/&quot; target=&quot;_blank&quot;&gt;getbootstrap&lt;/a&gt;,&amp;nbsp;&lt;/p&gt;&lt;p&gt;# Follow, Docs --&amp;gt; Components --&amp;gt; nav bar&lt;/p&gt;&lt;p&gt;# simply copy the code from first source code and paste in index.html file.&lt;/p&gt;&lt;p&gt;# Edit html file to get known result like as&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;!&lt;/span&gt;doctype html&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;html&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;lang&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;en&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- Required meta tags --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;meta&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;charset&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;utf-8&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;meta&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;name&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;viewport&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;content&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;width=device-width, initial-scale=1&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- Bootstrap CSS --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;link&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;rel&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;stylesheet&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;integrity&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;crossorigin&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;anonymous&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;My Blog&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;title&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;head&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;      &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- &amp;lt;h1&amp;gt;Hello, world!&amp;lt;/h1&amp;gt;   --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- navigation bar --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- For light theme&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;    &amp;lt;nav class=&quot;navbar navbar-expand-lg navbar-light bg-light&quot;&amp;gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;--&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!--For Dark Theme --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;nav&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;navbar navbar-expand-lg navbar-dark bg-dark&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;container-fluid&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;navbar-brand&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Ice-Cream&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;navbar-toggler&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-toggle&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;collapse&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-target&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#navbarSupportedContent&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-controls&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;navbarSupportedContent&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-expanded&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;false&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Toggle navigation&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;navbar-toggler-icon&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;collapse navbar-collapse&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;id&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;navbarSupportedContent&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;ul&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;navbar-nav me-auto mb-2 mb-lg-0&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;nav-item&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;nav-link active&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-current&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;page&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Home&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;nav-item&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;nav-link&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/about&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;About US&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;nav-item dropdown&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;nav-link dropdown-toggle&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/services&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;id&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;navbarDropdown&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;role&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;data-bs-toggle&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;dropdown&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-expanded&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;false&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  Services&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;ul&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;dropdown-menu&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-labelledby&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;navbarDropdown&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;dropdown-item&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/services&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Ice-Cream&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;dropdown-item&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Softy&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;hr&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;dropdown-divider&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;dropdown-item&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;#&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Family Pack&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;ul&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;             &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;              &amp;lt;li class=&quot;nav-item&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;                &amp;lt;a class=&quot;nav-link disabled&quot;&amp;gt;Disabled&amp;lt;/a&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;              &amp;lt;/li&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;              --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;nav-item&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;nav-link&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;href&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/contact&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Contact US&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;li&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;ul&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;form&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;d-flex&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;input&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;form-control me-2&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;search&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;placeholder&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Search&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;aria-label&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;Search&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;              &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;btn btn-outline-success&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;submit&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;Search&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;            &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;form&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;          &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;        &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;      &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;nav&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- Optional JavaScript; choose one of the two! --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- Option 1: Bootstrap Bundle with Popper --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;script&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;src&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;integrity&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p&quot;&lt;/span&gt; &lt;span style=&quot;color: #9cdcfe;&quot;&gt;crossorigin&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;anonymous&quot;&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!-- Option 2: Separate Popper and Bootstrap JS --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #6a9955;&quot;&gt;&amp;lt;!--&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;    &amp;lt;script src=&quot;https://cdn.jsdelivr.net/npm/@popperjs/core@2.10.2/dist/umd/popper.min.js&quot; integrity=&quot;sha384-7+zCNj/IqJ95wo16oMtfsKbZ9ccEh31eOz1HGyDuCQ6wgnyJNSYdrPa03rtR1zdB&quot; crossorigin=&quot;anonymous&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;    &amp;lt;script src=&quot;https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.min.js&quot; integrity=&quot;sha384-QJHtvGhmr9XOIpI6YVutG+2QOK9T+ZnN4kzFN1RtK3zEFEIsxhlmWl5/YESvpZ13&quot; crossorigin=&quot;anonymous&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;    --&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;  &lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;body&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;# use to migrate&lt;/p&gt;&lt;p&gt;python3 manage.py makemigrations&lt;/p&gt;&lt;p&gt;python3 manage.py migrate&lt;/p&gt;





</content><link rel='replies' type='application/atom+xml' href='https://machlearn1.blogspot.com/feeds/6052045182318777694/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://machlearn1.blogspot.com/2022/01/migration.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/6052045182318777694'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/6052045182318777694'/><link rel='alternate' type='text/html' href='https://machlearn1.blogspot.com/2022/01/migration.html' title='Migration'/><author><name>Lakshman Jangid</name><uri>http://www.blogger.com/profile/09240524566513148282</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviy4krmI_Gana2qhmJFh2c5DGP3rIwhmFMnuv9z2biwRP9_DlT52ktuWG9Bt968Y6cPOGKM7YC0oRZi-oDdAKodIFSQ_hnLLMLB-7o-kPulOLtW7vQ28tTmfcQY1Vmg/s113/pp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1219980476801326118.post-6375443857816754704</id><published>2022-01-14T20:01:00.001+05:30</published><updated>2022-01-14T20:01:17.002+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Django"/><title type='text'>Django Commands for creating project and app</title><content type='html'>
&lt;p&gt;&lt;b&gt;These commands are for Ubuntu Terminal&lt;/b&gt;&lt;/p&gt;&lt;p&gt;To open terminal, use&lt;b&gt; Ctrl+T&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;1. To create project&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;div&gt;
&lt;pre&gt;    &lt;code&gt;
    &lt;p&gt;django-admin startproject project_name&lt;/p&gt;
	&lt;/code&gt;    
&lt;/pre&gt;
&lt;/div&gt;
  
	&lt;p&gt;Folder will contain one folder &quot;project_name&quot; and manage.py file.&lt;/p&gt;&lt;p&gt;&lt;b&gt;2. To run the server&lt;/b&gt;&amp;nbsp;( be in the directory where manage.py file exist)&lt;/p&gt;
&lt;div&gt;
&lt;pre&gt;    &lt;code&gt;
    &lt;p&gt;python3 manage.py runserver&lt;/p&gt;
	&lt;/code&gt;    
&lt;/pre&gt;
&lt;/div&gt;



&lt;p&gt;Now, copy address from the terminal and paste in internet browser.&lt;/p&gt;&lt;p&gt;&lt;b&gt;3. To start app &lt;/b&gt;( to create app )&lt;/p&gt;
&lt;div&gt;
&lt;pre&gt;    &lt;code&gt;
    &lt;p&gt;django-admin startapp myapp&lt;/p&gt;
	&lt;/code&gt;    
&lt;/pre&gt;
&lt;/div&gt;



  &lt;p&gt;&lt;b&gt;4. To know django-admin commands&lt;/b&gt;&lt;/p&gt;
&lt;div&gt;
&lt;pre&gt;    &lt;code&gt;
    &lt;p&gt;python3 manage.py&lt;/p&gt;
	&lt;/code&gt;    
&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;It will show these commands:&lt;/p&gt;&lt;p&gt;Type &#39;manage.py help &amp;lt;subcommand&amp;gt;&#39; for help on a specific subcommand.&lt;/p&gt;&lt;p&gt;Available subcommands:&lt;/p&gt;&lt;p&gt;[auth]&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; changepassword&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; createsuperuser&lt;/p&gt;&lt;p&gt;[contenttypes]&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; remove_stale_contenttypes&lt;/p&gt;&lt;p&gt;[django]&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; check&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; compilemessages&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; createcachetable&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; dbshell&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; diffsettings&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; dumpdata&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; flush&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; inspectdb&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; loaddata&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; makemessages&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; makemigrations&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; migrate&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; sendtestemail&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; shell&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; showmigrations&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; sqlflush&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; sqlmigrate&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; sqlsequencereset&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; squashmigrations&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; startapp&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; startproject&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; test&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; testserver&lt;/p&gt;&lt;p&gt;[sessions]&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; clearsessions&lt;/p&gt;&lt;p&gt;[staticfiles]&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; collectstatic&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; findstatic&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; runserver&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;5. Change in setting for template and static files&lt;/b&gt;&lt;/p&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: &amp;quot;Droid Sans Mono&amp;quot;, &amp;quot;monospace&amp;quot;, monospace, &amp;quot;Droid Sans Fallback&amp;quot;; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt; pathlib &lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt; Path&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt; os&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# Build paths inside the project like this: BASE_DIR / &#39;subdir&#39;.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;BASE_DIR = Path(&lt;span style=&quot;color: #9cdcfe;&quot;&gt;__file__&lt;/span&gt;).resolve().parent.parent&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# Quick-start development settings - unsuitable for production&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# SECURITY WARNING: keep the secret key used in production secret!&lt;/span&gt;&lt;/div&gt;&lt;div&gt;SECRET_KEY = &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;******************************&lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# SECURITY WARNING: don&#39;t run with debug turned on in production!&lt;/span&gt;&lt;/div&gt;&lt;div&gt;DEBUG = &lt;span style=&quot;color: #569cd6;&quot;&gt;True&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;ALLOWED_HOSTS = []&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# Application definition&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;INSTALLED_APPS = [&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.admin&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.auth&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.contenttypes&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.sessions&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.messages&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.staticfiles&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;]&lt;/div&gt;&lt;br /&gt;&lt;div&gt;MIDDLEWARE = [&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.middleware.security.SecurityMiddleware&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.sessions.middleware.SessionMiddleware&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.middleware.common.CommonMiddleware&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.middleware.csrf.CsrfViewMiddleware&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.auth.middleware.AuthenticationMiddleware&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.messages.middleware.MessageMiddleware&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;    &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.middleware.clickjacking.XFrameOptionsMiddleware&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;]&lt;/div&gt;&lt;br /&gt;&lt;div&gt;ROOT_URLCONF = &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;newproject.urls&#39;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;TEMPLATES = [&lt;/div&gt;&lt;div&gt;    {&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;BACKEND&#39;&lt;/span&gt;: &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.template.backends.django.DjangoTemplates&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;DIRS&#39;&lt;/span&gt;: [os.path.join(BASE_DIR,&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;templates&#39;&lt;/span&gt;)], &lt;span style=&quot;color: #6a9955;&quot;&gt;# added manually&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;APP_DIRS&#39;&lt;/span&gt;: &lt;span style=&quot;color: #569cd6;&quot;&gt;True&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;OPTIONS&#39;&lt;/span&gt;: {&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;context_processors&#39;&lt;/span&gt;: [&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.template.context_processors.debug&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.template.context_processors.request&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.auth.context_processors.auth&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;                &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.messages.context_processors.messages&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;            ],&lt;/div&gt;&lt;div&gt;        },&lt;/div&gt;&lt;div&gt;    },&lt;/div&gt;&lt;div&gt;]&lt;/div&gt;&lt;br /&gt;&lt;div&gt;WSGI_APPLICATION = &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;newproject.wsgi.application&#39;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# Database&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# https://docs.djangoproject.com/en/3.2/ref/settings/#databases&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;DATABASES = {&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;default&#39;&lt;/span&gt;: {&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;ENGINE&#39;&lt;/span&gt;: &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.db.backends.sqlite3&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;NAME&#39;&lt;/span&gt;: BASE_DIR / &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;db.sqlite3&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;    }&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# Password validation&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;AUTH_PASSWORD_VALIDATORS = [&lt;/div&gt;&lt;div&gt;    {&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;NAME&#39;&lt;/span&gt;: &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.auth.password_validation.UserAttributeSimilarityValidator&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;    },&lt;/div&gt;&lt;div&gt;    {&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;NAME&#39;&lt;/span&gt;: &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.auth.password_validation.MinimumLengthValidator&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;    },&lt;/div&gt;&lt;div&gt;    {&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;NAME&#39;&lt;/span&gt;: &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.auth.password_validation.CommonPasswordValidator&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;    },&lt;/div&gt;&lt;div&gt;    {&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;NAME&#39;&lt;/span&gt;: &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.contrib.auth.password_validation.NumericPasswordValidator&#39;&lt;/span&gt;,&lt;/div&gt;&lt;div&gt;    },&lt;/div&gt;&lt;div&gt;]&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# Internationalization&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# https://docs.djangoproject.com/en/3.2/topics/i18n/&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;LANGUAGE_CODE = &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;en-us&#39;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;TIME_ZONE = &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;UTC&#39;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;USE_I18N = &lt;span style=&quot;color: #569cd6;&quot;&gt;True&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;USE_L10N = &lt;span style=&quot;color: #569cd6;&quot;&gt;True&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;USE_TZ = &lt;span style=&quot;color: #569cd6;&quot;&gt;True&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# Static files (CSS, JavaScript, Images)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# https://docs.djangoproject.com/en/3.2/howto/static-files/&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;STATIC_URL = &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;/static/&#39;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# added manually&lt;/span&gt;&lt;/div&gt;&lt;div&gt;STATICFILES_DIRS = [&lt;/div&gt;&lt;div&gt;    os.path.join(BASE_DIR,&lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;static&#39;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;    ]&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# Default primary key field type&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;DEFAULT_AUTO_FIELD = &lt;span style=&quot;color: #ce9178;&quot;&gt;&#39;django.db.models.BigAutoField&#39;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt; </content><link rel='replies' type='application/atom+xml' href='https://machlearn1.blogspot.com/feeds/6375443857816754704/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://machlearn1.blogspot.com/2022/01/django-commands-for-creating-project.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/6375443857816754704'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/6375443857816754704'/><link rel='alternate' type='text/html' href='https://machlearn1.blogspot.com/2022/01/django-commands-for-creating-project.html' title='Django Commands for creating project and app'/><author><name>Lakshman Jangid</name><uri>http://www.blogger.com/profile/09240524566513148282</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviy4krmI_Gana2qhmJFh2c5DGP3rIwhmFMnuv9z2biwRP9_DlT52ktuWG9Bt968Y6cPOGKM7YC0oRZi-oDdAKodIFSQ_hnLLMLB-7o-kPulOLtW7vQ28tTmfcQY1Vmg/s113/pp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1219980476801326118.post-5649828441374851560</id><published>2020-05-19T18:04:00.002+05:30</published><updated>2020-05-19T18:04:27.395+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Machine Learning Theory"/><title type='text'>Regularization</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Regularization&lt;/b&gt;, in &lt;span style=&quot;color: #450000;&quot;&gt;mathematics &lt;/span&gt;and &lt;span style=&quot;color: #450000;&quot;&gt;statistics &lt;/span&gt;and particularly&amp;nbsp;in the fields of &lt;span style=&quot;color: #450000;&quot;&gt;machine learning &lt;/span&gt;and &lt;span style=&quot;color: #450000;&quot;&gt;inverse problems&lt;/span&gt;,&amp;nbsp;refers to a process of introducing additional information&amp;nbsp;in order to solve an &lt;span style=&quot;color: #450000;&quot;&gt;ill-posed problem &lt;/span&gt;or to&amp;nbsp;prevent &lt;span style=&quot;color: #450000;&quot;&gt;overfitting&lt;/span&gt;. This information is usually in the&amp;nbsp;form of a penalty for complexity, such as restrictions for&amp;nbsp;&lt;span style=&quot;color: #450000;&quot;&gt;smoothness &lt;/span&gt;or bounds on the &lt;span style=&quot;color: #450000;&quot;&gt;vector space norm&lt;/span&gt;.&amp;nbsp;From a&amp;nbsp;&lt;span style=&quot;color: #450000;&quot;&gt;Bayesian &lt;/span&gt;point of view, many regularization techniques&amp;nbsp;correspond to imposing certain &lt;span style=&quot;color: #450000;&quot;&gt;prior &lt;/span&gt;distributions on&amp;nbsp;model parameters.&amp;nbsp;The same idea arose in many fields of &lt;span style=&quot;color: #450000;&quot;&gt;science&lt;/span&gt;. For&amp;nbsp;example, the &lt;span style=&quot;color: #450000;&quot;&gt;least-squares method &lt;/span&gt;can be viewed as&amp;nbsp;a very simple form of regularization. A simple form&amp;nbsp;of regularization applied to &lt;span style=&quot;color: #450000;&quot;&gt;integral equations&lt;/span&gt;&amp;nbsp;generally&amp;nbsp;termed &lt;span style=&quot;color: #450000;&quot;&gt;Tikhonov regularization &lt;/span&gt;after &lt;span style=&quot;color: #450000;&quot;&gt;Andrey Nikolayevich&lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;Tikhonov&lt;/span&gt;, is essentially a trade-off between fitting&amp;nbsp;the data and reducing the norm of the solution. More&amp;nbsp;recently, &lt;span style=&quot;color: #450000;&quot;&gt;non-linear regularization &lt;/span&gt;methods, including&amp;nbsp;&lt;span style=&quot;color: #450000;&quot;&gt;total variation regularization &lt;/span&gt;have become popular.&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Regularization in machine learning:&amp;nbsp;&lt;/b&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;In machine learning, the regularization method&amp;nbsp;is used for model selection, in particular, to prevent&amp;nbsp;&lt;span style=&quot;color: #450000;&quot;&gt;overfitting &lt;/span&gt;by penalizing models with extreme parameter&amp;nbsp;values. The most common variants in machine learning&amp;nbsp;are &lt;i&gt;L&lt;/i&gt;₁ and &lt;i&gt;L&lt;/i&gt;₂ regularization, which can be added to&amp;nbsp;learning algorithms that minimize a &lt;span style=&quot;color: #450000;&quot;&gt;loss function &lt;/span&gt;E(&lt;i&gt;X&lt;/i&gt;,&amp;nbsp;&lt;i&gt;Y&lt;/i&gt;) by instead minimizing E(&lt;i&gt;X&lt;/i&gt;, &lt;i&gt;Y&lt;/i&gt;) + α‖&lt;i&gt;w&lt;/i&gt;‖, where w is&amp;nbsp;the model’s weight vector, ‖·‖ is either the&amp;nbsp;&amp;nbsp;&lt;i&gt;L&lt;/i&gt;₁ norm or the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;squared &lt;/span&gt;&lt;i style=&quot;font-family: inherit;&quot;&gt;L&lt;/i&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;₂ norm, and α is a free parameter that needs&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;to be tuned empirically&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;. This method applies to&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;many models. When applied in &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;linear regression&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;, the resulting&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;models are termed &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;lasso &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;or &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;ridge regression&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;, but&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;regularization is also employed in (binary and &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;multiclass&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;logistic regression&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;neural nets&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;support vector machines&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: #450000;&quot;&gt;conditional random fields,&amp;nbsp;&lt;/span&gt;and some &lt;span style=&quot;color: #450000;&quot;&gt;matrix decomposition&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;methods. &lt;/span&gt;&lt;i style=&quot;font-family: inherit;&quot;&gt;L&lt;/i&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;₂ regularization may also be called&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;“weight decay”, in particular in the setting of neural nets.&amp;nbsp;&lt;/span&gt;&lt;i style=&quot;font-family: inherit;&quot;&gt;L&lt;/i&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;₁ regularization is often preferred because it produces&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;sparse models and thus performs &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;feature selection &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;within&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;the learning algorithm, but since the &lt;/span&gt;&lt;i style=&quot;font-family: inherit;&quot;&gt;L&lt;/i&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;₁ norm is not differentiable,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;it may require changes to learning algorithms,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;in particular gradient-based learners.&lt;/span&gt;&lt;span style=&quot;color: #000045; font-family: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;Bayesian learning &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;methods make use of a &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;prior probability&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;that (usually) gives a lower probability to more complex&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;models. Well-known model selection techniques include&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;the &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;Akaike information criterion &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(AIC), &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;minimum&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;description length &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(MDL), and the &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;Bayesian information&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;criterion &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(BIC). Alternative methods of controlling&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;overfitting not involving regularization include &lt;span style=&quot;color: #450000;&quot;&gt;cross validation&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Regularization can be used to fine-tune model complexity&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;using an augmented error function with cross-validation.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;The data sets used in complex models can produce a&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;leveling-off of validation as the complexity of the models increases.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Training data sets errors decrease while the validation&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;data set error remains constant. Regularization introduces&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;a second factor that weights the penalty against&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;more complex models with increased variance in the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;data errors. This gives an increasing penalty as model&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;complexity increases.&lt;/span&gt;&lt;span style=&quot;color: #000045; font-family: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Examples of applications of different methods of regularization&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;to the &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;linear model &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;are:&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;A linear combination of the LASSO and&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background: rgb(255, 255, 255); font-family: inherit;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;ridge regression&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;methods is elastic net regularization.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://machlearn1.blogspot.com/feeds/5649828441374851560/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://machlearn1.blogspot.com/2020/05/regularization.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/5649828441374851560'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/5649828441374851560'/><link rel='alternate' type='text/html' href='https://machlearn1.blogspot.com/2020/05/regularization.html' title='Regularization'/><author><name>Lakshman Jangid</name><uri>http://www.blogger.com/profile/09240524566513148282</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviy4krmI_Gana2qhmJFh2c5DGP3rIwhmFMnuv9z2biwRP9_DlT52ktuWG9Bt968Y6cPOGKM7YC0oRZi-oDdAKodIFSQ_hnLLMLB-7o-kPulOLtW7vQ28tTmfcQY1Vmg/s113/pp.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1219980476801326118.post-3871173051345563299</id><published>2020-05-18T17:18:00.003+05:30</published><updated>2020-05-18T21:23:21.627+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Machine Learning Theory"/><title type='text'>Data Mining</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black;&quot;&gt;Data
mining &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;(the analysis step of
the “Knowledge Discovery in Databases” process, or KDD),&lt;/span&gt;&lt;span style=&quot;color: #000045;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;an interdisciplinary subfield of &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;computer science&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #000045;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;is the computational process of
discovering patterns in large &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;data sets &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;involving methods at the intersection of &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;artificial intelligence&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;machine learning&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;statistics&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, and &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;database systems&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #000045;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;The overall goal of the data mining
process is to extract information from a data set and transform it into an
understandable structure for further use.&lt;/span&gt;&lt;span style=&quot;color: #000045;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Aside from the raw
analysis step, it involves database and &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;data management &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;aspects, &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;data pre-processing&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;model &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;and &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;inference &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;considerations, interestingness metrics, &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;complexity &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;considerations, post-processing of discovered&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;structures, &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;visualization&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;, and &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;online updating.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #450000;&quot;&gt;Process&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #450000;&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;The &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Knowledge Discovery in
Databases (KDD) process &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;is commonly defined with the stages:&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(1) Selection&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(2) Pre-processing&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(3) Transformation&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;(4) &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Data Mining&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(5) Interpretation/Evaluation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;It exists, however, in many variations on this theme,
such as the &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;Cross Industry
Standard Process for Data Mining &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(CRISP-DM) which defines six phases:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(1) Business Understanding&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(2) Data Understanding&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(3) Data Preparation&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(4) Modeling&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(5) Evaluation&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(6) Deployment&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;or a simplified process such as (1) pre-processing,
(2) data mining, and (3) results validation.&lt;/span&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;background: white; color: black;&quot;&gt; &lt;span lang=&quot;EN-IN&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-IN&quot; style=&quot;background: white; color: black;&quot;&gt;Pre-Processing: &lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-IN&quot; style=&quot;background: white; color: black;&quot;&gt;It is the first step to be
done in the process of data mining. In pre-processing, we try to look at the
data. The &lt;/span&gt;target data set must be
assembled.&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;background: white; color: black;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-IN&quot; style=&quot;background: white; color: black;&quot;&gt;The data
mining can only uncover patterns and features (required) present in data, Target
data set must be large enough to contain the features and patterns. &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Pre-processing is essential to analyze the
&lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;multivariate &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;data sets before data mining. The target
set is then cleaned. &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;Data cleaning &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;removes the observations containing &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;noise &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;and those with &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;missing data&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: white; color: black;&quot;&gt; &lt;span lang=&quot;EN-IN&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-IN&quot; style=&quot;background: white; color: black;&quot;&gt;Data Mining:&lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-IN&quot; style=&quot;background: white; color: black;&quot;&gt; &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;In the data mining task, we simply do six tasks.
Anomaly detection, Association &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;Rule
Learning, Clustering, Classification, Regression, and summarization.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span lang=&quot;EN-IN&quot; style=&quot;background: white; font-family: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;Anomaly detection &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;means identification of unusual
data records, that might be interesting or data errors that require further
investigation. In &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;Association rule learning, simply sear&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;ch for relationships between variables.
For example, a supermarket might gather data on customer purchasing habits. Using association rule learning,
the supermarket can determine which products are frequently bought together and
use this&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;information for marketing purposes. This is sometimes referred
to as market basket analysis.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;In &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;Clustering,&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; the task of discovering groups and structures
in the data that are in some way or another&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;“similar”, without using known structures in the data.
In &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;Classification, &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;the
task of generalizing known&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;structure to apply to new data. For example, an email program
might attempt to classify an e-mail as&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;“legitimate” or as “spam”. In &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;Regression, &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;attempts to find a function that models the
data with the least error. Finally in &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;Summarization, &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;provide a more compact
representation of the data set, including visualization and report generation.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-IN&quot; style=&quot;background: white; color: black;&quot;&gt;&lt;b&gt;Result
Verification:&lt;/b&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;The final step of
knowledge discovery from data is to verify that the patterns produced by the
data mining algorithms occur in the wider data set. Not all patterns found by
the data mining algorithms are necessarily valid. It is common for the data
mining algorithms to find patterns in the training set which are not present in
the general data set. This is called &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;overfitting&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;. To overcome this, the evaluation uses a &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;test set &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;of data on which the data mining algorithm was not trained. The learned
patterns are&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;applied to this test set, and the
resulting output is compared to the desired output.&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt; If the learned patterns do not meet the desired
standards, subsequently it is necessary to re-evaluate and change the pre-processing
and data mining steps. If the learned patterns do meet the desired standards,
then the final step is to interpret the learned patterns and turn them into
knowledge.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://machlearn1.blogspot.com/feeds/3871173051345563299/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://machlearn1.blogspot.com/2020/05/data-mining.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/3871173051345563299'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/3871173051345563299'/><link rel='alternate' type='text/html' href='https://machlearn1.blogspot.com/2020/05/data-mining.html' title='Data Mining'/><author><name>Lakshman Jangid</name><uri>http://www.blogger.com/profile/09240524566513148282</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviy4krmI_Gana2qhmJFh2c5DGP3rIwhmFMnuv9z2biwRP9_DlT52ktuWG9Bt968Y6cPOGKM7YC0oRZi-oDdAKodIFSQ_hnLLMLB-7o-kPulOLtW7vQ28tTmfcQY1Vmg/s113/pp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1219980476801326118.post-7012078943632730611</id><published>2020-05-18T10:30:00.001+05:30</published><updated>2020-05-18T21:26:23.636+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Machine Learning Python"/><title type='text'>Multiple regression: Python</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;import numpy as np&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;from sklearn import linear_model&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;import sklearn.metrics as sm&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;from sklearn.preprocessing import PolynomialFeatures&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;# Input file containing data&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;input_file = &#39;data_multivar_regr.txt&#39;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;# Load the data from the input file&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;data = np.loadtxt(input_file, delimiter=&#39;,&#39;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;X, y = data[:, :-1], data[:, -1]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;# Split data into training and testing&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;num_training = int(0.8 * len(X))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;num_test = len(X) - num_training&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;# Training data&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;X_train, y_train = X[:num_training], y[:num_training]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;# Test data&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;X_test, y_test = X[num_training:], y[num_training:]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;# Create the linear regressor model&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;linear_regressor = linear_model.LinearRegression()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;# Train the model using the training sets&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;linear_regressor.fit(X_train, y_train)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-IN&quot; style=&quot;background: white; color: black;&quot;&gt;LinearRegression(copy_X=True, fit_intercept=True,
n_jobs=None, normalize=False)&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;# Predict the output&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;y_test_pred = linear_regressor.predict(X_test)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;# Measure performance&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;print(&quot;Linear Regressor performance:&quot;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;print(&quot;Mean absolute error =&quot;,
round(sm.mean_absolute_error(y_test,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;y_test_pred), 2))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;print(&quot;Mean squared error =&quot;,
round(sm.mean_squared_error(y_test,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;y_test_pred), 2))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;print(&quot;Median absolute error =&quot;,
round(sm.median_absolute_error(y_test,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;y_test_pred), 2))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;print(&quot;Explained variance score =&quot;,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;round(sm.explained_variance_score(y_test,
y_test_pred), 2))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;print(&quot;R2 score =&quot;,
round(sm.r2_score(y_test, y_test_pred), 2))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span lang=&quot;EN-IN&quot; style=&quot;background: white; color: black;&quot;&gt;Linear Regressor performance: Mean absolute error = 3.58 Mean
squared error = 20.31 Median absolute error = 2.99 Explained variance score =
0.86 R2 score = 0.86&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;# Polynomial regression&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;polynomial = PolynomialFeatures(degree=10)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;X_train_transformed =
polynomial.fit_transform(X_train)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;datapoint = [[7.75, 6.35, 5.56]]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;poly_datapoint = polynomial.fit_transform(datapoint)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;poly_linear_model = linear_model.LinearRegression()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;poly_linear_model.fit(X_train_transformed, y_train)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;print(&quot;\nLinear regression:\n&quot;,
linear_regressor.predict(datapoint))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;print(&quot;\nPolynomial regression:\n&quot;,poly_linear_model.predict(poly_datapoint))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span lang=&quot;EN-IN&quot; style=&quot;background: white; color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;Linear
regression: [36.05286276] Polynomial regression: [41.45709521]&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://machlearn1.blogspot.com/feeds/7012078943632730611/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://machlearn1.blogspot.com/2020/05/multiple-regression.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/7012078943632730611'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/7012078943632730611'/><link rel='alternate' type='text/html' href='https://machlearn1.blogspot.com/2020/05/multiple-regression.html' title='Multiple regression: Python'/><author><name>Lakshman Jangid</name><uri>http://www.blogger.com/profile/09240524566513148282</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviy4krmI_Gana2qhmJFh2c5DGP3rIwhmFMnuv9z2biwRP9_DlT52ktuWG9Bt968Y6cPOGKM7YC0oRZi-oDdAKodIFSQ_hnLLMLB-7o-kPulOLtW7vQ28tTmfcQY1Vmg/s113/pp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1219980476801326118.post-3559774705670039896</id><published>2020-05-17T19:05:00.001+05:30</published><updated>2020-05-18T21:23:21.564+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Machine Learning Theory"/><title type='text'>Dimensionality Reduction</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;For dimensional
reduction in physics, see &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;Dimensional&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;reduction&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;In &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;machine learning &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;and &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;statistics&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;, &lt;/span&gt;&lt;b style=&quot;font-family: inherit;&quot;&gt;dimensionality&amp;nbsp;&lt;/b&gt;&lt;b style=&quot;font-family: inherit;&quot;&gt;reduction &lt;/b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;or &lt;/span&gt;&lt;b style=&quot;font-family: inherit;&quot;&gt;dimension reduction &lt;/b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;is the process&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;of reducing the number of random variables under&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;consideration&lt;/span&gt;&lt;span style=&quot;color: #000045; font-family: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;and can be divided
into &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;feature selection&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;and &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;feature extraction&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black;&quot;&gt;1.Feature selection&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;Feature selection &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;approaches try to find a subset of the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;original variables (also called features or
attributes). Two&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;strategies are &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;filter &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(e.g. &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;information gain&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;) and &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;wrapper&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(e.g. search guided by the accuracy) approaches.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;In some cases, &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;data analysis &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;such as &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;regression &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;or&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;classification &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;can be done in the reduced space more accurately&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;than in the original space.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black;&quot;&gt;2. Feature extraction&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #450000;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: #450000;&quot;&gt;Feature extraction &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;transforms the data in the high-dimensional&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;space &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;to a space of fewer &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;dimensions&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;. The&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;data transformation may be linear, as in &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;principal component&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;analysis &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(PCA), but many &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;nonlinear dimensionalities&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;reduction &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;techniques also exist&lt;/span&gt;&lt;span style=&quot;color: #000045; font-family: inherit;&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;For multidimensional&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;data, &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;tensor &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;representation can be
used in dimensionality&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;reduction through &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;multilinear subspace learning&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #000045; font-family: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;The main linear the technique for dimensionality reduction,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;principal component analysis performs a linear
mapping&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;of the data to a lower-dimensional space in such a way
that&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;the variance of the data in the low-dimensional
representation&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;is maximized. In practice, the &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;correlation &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;matrix of&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;the data is constructed and the &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;eigenvectors &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;on this matrix are&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;computed. The eigenvectors that correspond to the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;largest eigenvalues (the principal components) can now&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;be used to reconstruct a large fraction of the variance of&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;the original data. Moreover, the first few eigenvectors can&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;often be interpreted in terms of the large-scale physical&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;behavior of the system. The original space (with a dimension&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;of the number of points) has been reduced (with data&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;loss, but hopefully retaining the most important variance)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;to space spanned by a few eigenvectors.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;A different approach to nonlinear dimensionality reduc&lt;span style=&quot;color: black;&quot;&gt;tion is through the use of &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;autoencoders&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, a special kind of&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;feed-forward &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;neural networks &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;with a bottle-neck hidden&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;layer.&lt;/span&gt;&lt;span style=&quot;color: #000045; font-family: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;The training of deep
encoders are typically performed&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;using a greedy layer-wise pre-training (e.g., using&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;a stack of &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;restricted Boltzmann machines&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;) that is followed&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;by a finetuning stage based on &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;backpropagation&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://machlearn1.blogspot.com/feeds/3559774705670039896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://machlearn1.blogspot.com/2020/05/dimensionality-reduction.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/3559774705670039896'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/3559774705670039896'/><link rel='alternate' type='text/html' href='https://machlearn1.blogspot.com/2020/05/dimensionality-reduction.html' title='Dimensionality Reduction'/><author><name>Lakshman Jangid</name><uri>http://www.blogger.com/profile/09240524566513148282</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviy4krmI_Gana2qhmJFh2c5DGP3rIwhmFMnuv9z2biwRP9_DlT52ktuWG9Bt968Y6cPOGKM7YC0oRZi-oDdAKodIFSQ_hnLLMLB-7o-kPulOLtW7vQ28tTmfcQY1Vmg/s113/pp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1219980476801326118.post-6790356128745197378</id><published>2020-05-17T18:57:00.000+05:30</published><updated>2020-05-18T21:23:22.139+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Machine Learning Theory"/><title type='text'>Expectation Maximization EM Algorithm</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;The EM algorithm is used to
find the (locally) &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;maximum likelihood&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;parameters of a &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;statistical model &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;in cases where&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;the equations cannot be solved directly. Typically
these&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;models involve &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;latent variables &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;in addition to unknown&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;parameters &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;and known data observations. That is, either&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;there are &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;missing values &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;among the data, or the model&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;can be formulated more simply by assuming the
existence&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;of additional unobserved data points.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;For example,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;a &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;mixture model &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;can be described more simply by&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;assuming that each observed data point has a
corresponding the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;unobserved data point, or latent variable, specifying&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;the mixture component that each data point belongs to.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Finding a maximum likelihood solution typically
requires&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;taking the &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;derivatives &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;of the &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;likelihood function
&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;with respect&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;to all the unknown values: the parameters&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;and the latent variables, and simultaneously solving
the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;resulting equations. In statistical models with latent
variables,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;this usually is not possible. Instead, the result is&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;typically a set of interlocking equations in which the
solution&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;to the parameters requires the values of the latent &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;variables and vice versa, but substituting one set of
equations&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;into the other produces an unsolvable equation.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;One
can simply pick arbitrary values for one&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;of the two sets of unknowns, use them to estimate the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;second set, then use these new values to find a better
estimate&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;of the first set, and then keep alternating between&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;the two until the resulting values both converge to
fixed&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;points. It’s not obvious that this will work at all,
but in fact,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;it can be proven that in this particular context it
does, and&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;that the derivative of the likelihood is (arbitrarily
close&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;to) zero at that point, which in turn means that the
point&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;is either a maximum or a &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;saddle point&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;. In general, there&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;may be multiple maxima, and there is no guarantee that&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;the global maximum will be found.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://machlearn1.blogspot.com/feeds/6790356128745197378/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://machlearn1.blogspot.com/2020/05/expectation-maximization-em-algorithm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/6790356128745197378'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/6790356128745197378'/><link rel='alternate' type='text/html' href='https://machlearn1.blogspot.com/2020/05/expectation-maximization-em-algorithm.html' title='Expectation Maximization EM Algorithm'/><author><name>Lakshman Jangid</name><uri>http://www.blogger.com/profile/09240524566513148282</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviy4krmI_Gana2qhmJFh2c5DGP3rIwhmFMnuv9z2biwRP9_DlT52ktuWG9Bt968Y6cPOGKM7YC0oRZi-oDdAKodIFSQ_hnLLMLB-7o-kPulOLtW7vQ28tTmfcQY1Vmg/s113/pp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1219980476801326118.post-5729835838458270853</id><published>2020-05-17T18:52:00.003+05:30</published><updated>2020-05-18T21:23:21.979+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Machine Learning Theory"/><title type='text'>Cross Validation</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black;&quot;&gt;Cross-validation&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;, sometimes called &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black;&quot;&gt;rotation estimation&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #000045;&quot;&gt; &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;is a &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;model validation &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;technique for assessing how the results of a &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;statistical &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;analysis will generalize to an independent
data set. It is mainly used in settings where the goal is prediction, and one
wants to estimate how &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;accurately &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;a predictive model will perform in practice. In a prediction problem, a
model is usually given a dataset of &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;known data &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;on which training is run (&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;training dataset&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;), and a dataset of &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;unknown data &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(or &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;first seen &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;data)&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;against which the model is tested (&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;testing dataset&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;).&lt;/span&gt;&lt;span style=&quot;color: #000045; font-family: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;The goal of cross-validation is to define a dataset to “test” the model in the training phase
(i.e., the &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;validation dataset&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;), in order to limit problems like &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;overfitting&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;, give an insight on how the model will generalize to an independent dataset
(i.e., an unknown dataset, for instance from a real problem), etc.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;One round of
cross-validation involves &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;partitioning &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;a &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;sample &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;of &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;data &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;into &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;complementary &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;subsets, performing the analysis on one subset (called the &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;training set&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;), and validating the analysis on the other subset
(called the &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;validation set &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;or &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;testing set&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;). To reduce &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: inherit;&quot;&gt;variability&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;, multiple rounds of cross-validation are performed using different partitions,
and the validation results are averaged over the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;rounds. One of the main reasons for using
cross-validation instead of using the conventional validation&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(e.g. partitioning the data set into two sets of 70%
for training and 30% for the test,) is that the error (e.g. Root&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Mean Square Error) on the training set in the
conventional validation is not a useful estimator of model performance and thus
the error on the test data set does not properly represent the assessment of
model performance. This may be due to the fact that there is not enough data available
or there is not a good distribution and spread of data to partition it into
separate training and test sets in the conventional validation method. In these
cases, a fair way to properly estimate model prediction performance is&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;to use cross-validation as a powerful general
technique.&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt; In summary, cross-validation
combines (averages) measures of&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;fit (prediction error)
to correct for the optimistic nature of training error and derive a more accurate
estimate of model prediction performance.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://machlearn1.blogspot.com/feeds/5729835838458270853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://machlearn1.blogspot.com/2020/05/cross-validation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/5729835838458270853'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/5729835838458270853'/><link rel='alternate' type='text/html' href='https://machlearn1.blogspot.com/2020/05/cross-validation.html' title='Cross Validation'/><author><name>Lakshman Jangid</name><uri>http://www.blogger.com/profile/09240524566513148282</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviy4krmI_Gana2qhmJFh2c5DGP3rIwhmFMnuv9z2biwRP9_DlT52ktuWG9Bt968Y6cPOGKM7YC0oRZi-oDdAKodIFSQ_hnLLMLB-7o-kPulOLtW7vQ28tTmfcQY1Vmg/s113/pp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1219980476801326118.post-2811245575588561801</id><published>2020-05-17T18:50:00.001+05:30</published><updated>2020-05-18T21:23:21.468+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Machine Learning Theory"/><title type='text'>Naïve Bayes Classifier</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US; mso-fareast-font-family: FreeSerif-Identity-H;&quot;&gt;In &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US; mso-fareast-font-family: FreeSerif-Identity-H;&quot;&gt;machine learning&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US; mso-fareast-font-family: FreeSerif-Identity-H;&quot;&gt;, N&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US; mso-fareast-font-family: FreeSerifBold;&quot;&gt;aive Bayes classifiers &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US; mso-fareast-font-family: FreeSerif-Identity-H;&quot;&gt;are a family of simple &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US; mso-fareast-font-family: FreeSerif-Identity-H;&quot;&gt;probabilistic classifiers &lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US; mso-fareast-font-family: FreeSerif-Identity-H;&quot;&gt;based on applying &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US; mso-fareast-font-family: FreeSerif-Identity-H;&quot;&gt;Bayes’ theorem &lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US; mso-fareast-font-family: FreeSerif-Identity-H;&quot;&gt;with strong (naive) &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US; mso-fareast-font-family: FreeSerif-Identity-H;&quot;&gt;independence &lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US; mso-fareast-font-family: FreeSerif-Identity-H;&quot;&gt;assumptions between the features.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US; mso-fareast-font-family: FreeSerif-Identity-H;&quot;&gt; Naive Bayes classifiers are highly scalable,
requiring a number of parameters linear in the number of variables (features/predictors)
in a learning problem. &lt;span style=&quot;color: black;&quot;&gt;Naive Bayes is a simple technique for constructing classifiers: models that assign class labels to
problem instances represented as vectors of &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;feature
&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;values, where the class labels are drawn from
some finite set. It is not a single &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;algorithm
&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;for training such classifiers, but a family of
algorithms based on a common principle: all naive Bayes classifiers assume that
the value of a particular feature is &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;independent
&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;of the value of any other feature, given &lt;/span&gt;the
class variable. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US; mso-fareast-font-family: FreeSerif-Identity-H;&quot;&gt;For example, a fruit may be considered&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;to be an apple if it is red, round, and about
3 cm in diameter. A naive Bayes classifier considers each of these features to
contribute independently to the probability that this fruit is an apple,
regardless of any possible &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US; mso-fareast-font-family: FreeSerif-Identity-H;&quot;&gt;correlations &lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US; mso-fareast-font-family: FreeSerif-Identity-H;&quot;&gt;between the color, roundness, and diameter&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;features. For some types of probability models, naive
Bayes classifiers can be trained very efficiently in a &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: Arial, sans-serif;&quot;&gt;supervised learning &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;setting. In many practical applications,
parameter estimation for naive Bayes models uses the method of &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: Arial, sans-serif;&quot;&gt;maximum likelihood&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;; in other words, one can work with the
naive Bayes model without accepting &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: Arial, sans-serif;&quot;&gt;Bayesian probability &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;or using any Bayesian methods.&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt; An
advantage of naive Bayes is that it only requires a small amount of training
data to estimate the parameters necessary for classification.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://machlearn1.blogspot.com/feeds/2811245575588561801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://machlearn1.blogspot.com/2020/05/naive-bayes-classifier.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/2811245575588561801'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/2811245575588561801'/><link rel='alternate' type='text/html' href='https://machlearn1.blogspot.com/2020/05/naive-bayes-classifier.html' title='Naïve Bayes Classifier'/><author><name>Lakshman Jangid</name><uri>http://www.blogger.com/profile/09240524566513148282</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviy4krmI_Gana2qhmJFh2c5DGP3rIwhmFMnuv9z2biwRP9_DlT52ktuWG9Bt968Y6cPOGKM7YC0oRZi-oDdAKodIFSQ_hnLLMLB-7o-kPulOLtW7vQ28tTmfcQY1Vmg/s113/pp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1219980476801326118.post-7469378559713627350</id><published>2020-05-16T19:49:00.001+05:30</published><updated>2020-05-18T21:23:22.203+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Machine Learning Theory"/><title type='text'>Quantities of Information : KL Divergence</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;4.Kullback-Leibler
divergence ( Information gain ): &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;The &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #450000;&quot;&gt;Kullback–Leibler
divergence &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;(or &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black;&quot;&gt;information divergence&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black;&quot;&gt;information
gain&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;, or &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black;&quot;&gt;relative entropy&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;) is a way of comparing two distributions:
a “true” &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;probability distribution
&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;p(X)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, and an arbitrary
probability distribution &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;q(X)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;. If we compress data in a manner that assumes &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;q(X) &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;is the distribution underlying some data,
when, in reality, &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;p(X) &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;is the correct distribution, the Kullback–Leibler divergence is the number of average additional bits per datum necessary for compression. It is
thus defined &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnd7tnSEkQjO4HHYneK6TCJRN40MR4bSjf0b-WjSHNk03ESXonuQ6FbDM1OTOGCcnyYheW2EMf3R5oX6_KcpqelqNuiJp1ahGCC8NGEydhSRPLNQcoHVzCRG6cxncw8NtCAoHXYH7KvgEk/s1600/51.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;84&quot; data-original-width=&quot;385&quot; height=&quot;131&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnd7tnSEkQjO4HHYneK6TCJRN40MR4bSjf0b-WjSHNk03ESXonuQ6FbDM1OTOGCcnyYheW2EMf3R5oX6_KcpqelqNuiJp1ahGCC8NGEydhSRPLNQcoHVzCRG6cxncw8NtCAoHXYH7KvgEk/s640/51.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Although it is sometimes used as a &#39;distance metric&#39;,
KL divergence is not a true &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;metric &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;since it is not
symmetric and does not satisfy the &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;triangle inequality &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(making it a semi-quasi metric).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: black;&quot;&gt;5.Kullback–Leibler divergence of a prior
from the truth: &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;Another interpretation of KL divergence is this: suppose a number &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;X &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;is about to be drawn randomly from a
discrete set with probability distribution &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;p(x)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;. If Alice knows the true distribution &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;p(x)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, while Bob believes (has a &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;prior&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) that the distribution is &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;q(x)&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, then Bob will be more &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;surprised &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;than Alice, on average, upon seeing the value of &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;X&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;. The KL divergence is the (objective) the expected value of Bob’s (subjective) &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;surprisal &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;minus Alice’s surprisal, measured in bits if the &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;log &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;is in base 2. In this way, the extent to
which Bob’s prior is “wrong” can be quantified in terms of how&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;“unnecessarily surprised” it’s expected to make him.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://machlearn1.blogspot.com/feeds/7469378559713627350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://machlearn1.blogspot.com/2020/05/quantities-of-information-kl-divergence.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/7469378559713627350'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/7469378559713627350'/><link rel='alternate' type='text/html' href='https://machlearn1.blogspot.com/2020/05/quantities-of-information-kl-divergence.html' title='Quantities of Information : KL Divergence'/><author><name>Lakshman Jangid</name><uri>http://www.blogger.com/profile/09240524566513148282</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviy4krmI_Gana2qhmJFh2c5DGP3rIwhmFMnuv9z2biwRP9_DlT52ktuWG9Bt968Y6cPOGKM7YC0oRZi-oDdAKodIFSQ_hnLLMLB-7o-kPulOLtW7vQ28tTmfcQY1Vmg/s113/pp.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnd7tnSEkQjO4HHYneK6TCJRN40MR4bSjf0b-WjSHNk03ESXonuQ6FbDM1OTOGCcnyYheW2EMf3R5oX6_KcpqelqNuiJp1ahGCC8NGEydhSRPLNQcoHVzCRG6cxncw8NtCAoHXYH7KvgEk/s72-c/51.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1219980476801326118.post-3430427955372193723</id><published>2020-05-16T19:46:00.003+05:30</published><updated>2020-05-18T21:23:21.532+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Machine Learning Theory"/><title type='text'>Quantities of Information : Entropy II</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;2. Joint
Entropy: &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;The &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #450000;&quot;&gt;joint entropy &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;of two discrete random variables &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;X &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;and &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Y &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;is merely the entropy
of their pairing: (&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;X; Y &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;). This implies that
if &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;X &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;and &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Y &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;are &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;independent&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, then their joint entropy is the sum of
their individual entropies.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;For example, if (&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;X; Y &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) represents the
position of a &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;chess &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;piece — &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;X &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;the row and &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Y &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;the column, then the
joint entropy of the row of the piece and the column of the piece will be the entropy of the position of the piece.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGcDMxI0CxsFmxR7msdJmvkHOyb9Bmqm34a34scf3gfBA3Ak3gm9V-GET5zeY-Sk3BdOVAzAElXR5FLM75FU6Lps4Xsym0cjm2WulAXRrhwDMGPnRM4vqqjTwUDfS0GRMdOKwCFlBmrwHg/s1600/49.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;92&quot; data-original-width=&quot;525&quot; height=&quot;112&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGcDMxI0CxsFmxR7msdJmvkHOyb9Bmqm34a34scf3gfBA3Ak3gm9V-GET5zeY-Sk3BdOVAzAElXR5FLM75FU6Lps4Xsym0cjm2WulAXRrhwDMGPnRM4vqqjTwUDfS0GRMdOKwCFlBmrwHg/s640/49.PNG&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;o:p&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Despite similar notation, joint entropy should not be
confused with &lt;/span&gt;&lt;b style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: #450000;&quot;&gt;cross
entropy&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;3. Conditional entropy: &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;The &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #450000;&quot;&gt;conditional entropy &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;or &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black;&quot;&gt;conditional
uncertainty &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;of &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;X &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;given random variable &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Y &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(also called the &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: black;&quot;&gt;equivocation &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;of &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;X &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;about &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Y &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) is the average conditional entropy over &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;Y&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTVVlawhJNq1qVtMUfHD2rmTZmC9VhyWVw1dL0A2QNde0Qvj60hfj8hM3cfI9hwG6za0vMWjBAwqOFxUVide0sNgDY3Ag_6MEapL6FsLeG1SpVeK3thUtNSkOGwoncIr8-L0JtRK4LAmq8/s1600/50.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;91&quot; data-original-width=&quot;540&quot; height=&quot;104&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTVVlawhJNq1qVtMUfHD2rmTZmC9VhyWVw1dL0A2QNde0Qvj60hfj8hM3cfI9hwG6za0vMWjBAwqOFxUVide0sNgDY3Ag_6MEapL6FsLeG1SpVeK3thUtNSkOGwoncIr8-L0JtRK4LAmq8/s640/50.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Because entropy can be conditioned on a
random variable or on that random variable is a certain value, care should
be taken not to confuse these two definitions of conditional entropy, the
former of which is in more common use. A basic property of this form of
conditional entropy is that:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;H&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;X&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;|&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Y &lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;) = &lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;H&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;X; Y &lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;) &lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;-&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;H&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Y &lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://machlearn1.blogspot.com/feeds/3430427955372193723/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://machlearn1.blogspot.com/2020/05/quantities-of-information-entropy-ii.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/3430427955372193723'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/3430427955372193723'/><link rel='alternate' type='text/html' href='https://machlearn1.blogspot.com/2020/05/quantities-of-information-entropy-ii.html' title='Quantities of Information : Entropy II'/><author><name>Lakshman Jangid</name><uri>http://www.blogger.com/profile/09240524566513148282</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviy4krmI_Gana2qhmJFh2c5DGP3rIwhmFMnuv9z2biwRP9_DlT52ktuWG9Bt968Y6cPOGKM7YC0oRZi-oDdAKodIFSQ_hnLLMLB-7o-kPulOLtW7vQ28tTmfcQY1Vmg/s113/pp.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGcDMxI0CxsFmxR7msdJmvkHOyb9Bmqm34a34scf3gfBA3Ak3gm9V-GET5zeY-Sk3BdOVAzAElXR5FLM75FU6Lps4Xsym0cjm2WulAXRrhwDMGPnRM4vqqjTwUDfS0GRMdOKwCFlBmrwHg/s72-c/49.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1219980476801326118.post-3597590133791289121</id><published>2020-05-16T19:43:00.001+05:30</published><updated>2020-05-18T21:23:21.596+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Machine Learning Theory"/><title type='text'>Quantities of Information : Entropy I</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Quantities of
Information: &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;Information theory is based on &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;probability theory &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;and &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;statistics&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;. Information theory often concerns itself
with measures of information of the distributions associated with random
variables. Important quantities of information are &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;entropy&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, a measure of information in a single &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;random variable&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, and &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;mutual information&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, a measure of information in common between two
random variables. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;1. Entropy: &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;The &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #450000;&quot;&gt;entropy&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;H&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, of a discrete random variable &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;X &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;intuitively is a measure of the amount of &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;uncertainty &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;associated with the value of &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;X &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;when only its distribution is known. So,
for example, if the distribution associated with a random variable was a
constant distribution, &lt;/span&gt;then
entropy is minimal and equal to 0. Furthermore, in the case of a distribution
restricted to take on a finite number of values, entropy is maximized with a
uniform distribution over the values that the distribution takes on.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;If X is the set of all messages &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;{&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;x&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;sub&gt;1 &lt;/sub&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;, . . .. ,&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt; x&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;sub&gt;n&lt;/sub&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;}&lt;/b&gt; that &lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;X&lt;/b&gt; could be, and p(x) is the
probability of some x ϵ X, then the entropy, H, of X is defined:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB441m8c81kp2D_JxQaX4Nvd8FB9ZN-5BwG9ZciHgITK8w9iOSq7jlycUqeShkGT3tiXpnFFO-L4-YIU7sP_PJsvOU4FCkuN-1lcS_5ANcmc2MNqSc8_0mkWhqvXMhFafBd8Da0iWqGpdJ/s1600/47.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;84&quot; data-original-width=&quot;374&quot; height=&quot;88&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB441m8c81kp2D_JxQaX4Nvd8FB9ZN-5BwG9ZciHgITK8w9iOSq7jlycUqeShkGT3tiXpnFFO-L4-YIU7sP_PJsvOU4FCkuN-1lcS_5ANcmc2MNqSc8_0mkWhqvXMhFafBd8Da0iWqGpdJ/s400/47.PNG&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;(Here, &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;I&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;) is the &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;self-information&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, which is the entropy contribution of an individual message, and E&lt;/span&gt;&lt;sub&gt;&lt;span style=&quot;color: black;&quot;&gt;X&lt;/span&gt;&lt;/sub&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;is the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;expected value&lt;/span&gt;.) A property of entropy is that it is maximized when all the messages
in the message space are equiprobable &lt;b&gt;p&lt;/b&gt;&lt;b&gt;(&lt;/b&gt;&lt;b&gt;x&lt;/b&gt;&lt;b&gt;) = 1/&lt;/b&gt;&lt;b&gt;n&lt;/b&gt; ,—i.e., most unpredictable— in which case &lt;b&gt;H&lt;/b&gt;&lt;b&gt;(&lt;/b&gt;&lt;b&gt;X&lt;/b&gt;&lt;b&gt;) = log &lt;/b&gt;&lt;b&gt;n&lt;/b&gt; .&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;The special case of information entropy for a random variable
with two outcomes is the &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #450000;&quot;&gt;binary
entropy function&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;, usually taken to the logarithmic base 2, thus having the Shannon (Sh)
as unit:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: 0.0001pt; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;H&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;sub&gt;&lt;span style=&quot;color: black;&quot;&gt;b&lt;/span&gt;&lt;/sub&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;p&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;) = -&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;p &lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;log&lt;sub&gt;2&lt;/sub&gt; &lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;p - &lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;(1 - &lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;p&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;) log&lt;sub&gt;2&lt;/sub&gt;(1 -&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;p&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;)&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;The graph for this equation looks like as&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRe5PCKLt_z0fUTWvy4m6GgjIgdebiHNooqLtKGEdgshvnickzsfrAlyFVASaSEUNLLy8fxUSL0hl9zkBzWwkDJPHWPI2rKWv9ZNv14y8hGjw7BcV7dtXPjW1z31Li7nMm5jwapos-d0dT/s1600/48.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;428&quot; data-original-width=&quot;474&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRe5PCKLt_z0fUTWvy4m6GgjIgdebiHNooqLtKGEdgshvnickzsfrAlyFVASaSEUNLLy8fxUSL0hl9zkBzWwkDJPHWPI2rKWv9ZNv14y8hGjw7BcV7dtXPjW1z31Li7nMm5jwapos-d0dT/s400/48.PNG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://machlearn1.blogspot.com/feeds/3597590133791289121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://machlearn1.blogspot.com/2020/05/quantities-of-information-entropy-i.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/3597590133791289121'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/3597590133791289121'/><link rel='alternate' type='text/html' href='https://machlearn1.blogspot.com/2020/05/quantities-of-information-entropy-i.html' title='Quantities of Information : Entropy I'/><author><name>Lakshman Jangid</name><uri>http://www.blogger.com/profile/09240524566513148282</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviy4krmI_Gana2qhmJFh2c5DGP3rIwhmFMnuv9z2biwRP9_DlT52ktuWG9Bt968Y6cPOGKM7YC0oRZi-oDdAKodIFSQ_hnLLMLB-7o-kPulOLtW7vQ28tTmfcQY1Vmg/s113/pp.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgB441m8c81kp2D_JxQaX4Nvd8FB9ZN-5BwG9ZciHgITK8w9iOSq7jlycUqeShkGT3tiXpnFFO-L4-YIU7sP_PJsvOU4FCkuN-1lcS_5ANcmc2MNqSc8_0mkWhqvXMhFafBd8Da0iWqGpdJ/s72-c/47.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1219980476801326118.post-2247242782840655828</id><published>2020-05-16T19:38:00.002+05:30</published><updated>2020-05-18T21:23:21.340+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Machine Learning Theory"/><title type='text'>Information Theory: Overview</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US; mso-fareast-font-family: FreeSerif-Identity-H;&quot;&gt;Information theory studies the transmission,
processing,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;utilization, and extraction of information. Abstractly, information can
be thought of as the resolution of uncertainty. &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;In
the case of communication of information over a noisy channel, this abstract the concept was made concrete in 1948 by &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;Claude
Shannon &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;in &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;A
Mathematical Theory of Communication&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;, in which
“information” is thought of as a set of possible messages, where the goal is to
send these messages over a noisy channel, and then to have the receiver
reconstruct the message with a low probability of error, in spite of the channel
noise.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US; mso-fareast-font-family: FreeSerif-Identity-H;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US; mso-fareast-font-family: FreeSerif-Identity-H;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Information theory is closely associated with a collection of pure and
applied disciplines that have been investigated and reduced to engineering
practice under a variety of &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;rubrics &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;throughout the world over the past half-century or more: &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;adaptive systems&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;anticipatory systems&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;artificial intelligence&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;,
&lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;complex systems&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;complexity science&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;cybernetics&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;informatics&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #450000;&quot;&gt;machine learning&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;, along with&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;systems sciences &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;of any descriptions. Information theory is a broad and deep
mathematical theory, with equally broad and deep applications, amongst which is
the vital field of &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;coding theory&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;.&amp;nbsp; Information theory is also used
in &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;information
retrieval, intelligence gathering&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;gambling&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;statistics&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;, and even in &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;musical composition&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://machlearn1.blogspot.com/feeds/2247242782840655828/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://machlearn1.blogspot.com/2020/05/information-theory-overview.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/2247242782840655828'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/2247242782840655828'/><link rel='alternate' type='text/html' href='https://machlearn1.blogspot.com/2020/05/information-theory-overview.html' title='Information Theory: Overview'/><author><name>Lakshman Jangid</name><uri>http://www.blogger.com/profile/09240524566513148282</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviy4krmI_Gana2qhmJFh2c5DGP3rIwhmFMnuv9z2biwRP9_DlT52ktuWG9Bt968Y6cPOGKM7YC0oRZi-oDdAKodIFSQ_hnLLMLB-7o-kPulOLtW7vQ28tTmfcQY1Vmg/s113/pp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1219980476801326118.post-507212554228778468</id><published>2020-05-15T18:30:00.001+05:30</published><updated>2020-05-18T21:23:21.787+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Machine Learning Theory"/><title type='text'>Gradient Descent Method II</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;For the functions discussed in part
I, we must use a concept of partial derivatives. The partial derivate measures
how the function changes as only one variable increases. The gradient of the function contains all partial derivatives. In the case of multi-dimensions,
critical points are points where every element of the gradient is equal to zero.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;The &lt;span style=&quot;mso-bidi-font-style: italic;&quot;&gt;directional derivative &lt;/span&gt;in the direction &lt;span style=&quot;mso-bidi-font-style: italic;&quot;&gt;u &lt;/span&gt;(a unit vector) is the slope of the function f in direction u. In other
words, the derivative of the function f (&lt;span style=&quot;mso-bidi-font-style: italic;&quot;&gt;x &lt;/span&gt;+ αu) with respect to α, evaluated at α = 0.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;Using the chain rule, we can see that this &lt;span style=&quot;mso-bidi-font-style: italic;&quot;&gt;u&lt;sup&gt;T&lt;/sup&gt;&lt;/span&gt;∇x f (&lt;span style=&quot;mso-bidi-font-style: italic;&quot;&gt;x&lt;/span&gt;). To minimize f, we would
like to find the direction in which f decreases the fastest.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;This function is minimized when u
points in the opposite direction of the gradient. In other words, the
gradient points directly uphill, and the negative gradient points directly
downhill. We can decrease f by
moving in the direction of the negative gradient. This is known as the method
of steepest descent or gradient descent.&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Steepest descent proposes a new
point&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-align: center; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;x’
= &lt;span style=&quot;mso-bidi-font-style: italic;&quot;&gt;x &lt;/span&gt;− &lt;span style=&quot;color: black;&quot;&gt;ϵ&lt;/span&gt; ∇ &lt;sub&gt;x&lt;/sub&gt;f (&lt;span style=&quot;mso-bidi-font-style: italic;&quot;&gt;x&lt;/span&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;where &lt;span style=&quot;color: black;&quot;&gt;ϵ&lt;/span&gt; &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;is the size of the step. We can choose &lt;span style=&quot;color: black;&quot;&gt;ϵ &lt;/span&gt;&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;in several different ways. A popular approach is to
set &lt;span style=&quot;color: black;&quot;&gt;ϵ&lt;/span&gt; to a small
constant. Sometimes, we can solve for the step size that makes the directional
derivative vanish. Another approach is to evaluate f (&lt;span style=&quot;mso-bidi-font-style: italic;&quot;&gt;x &lt;/span&gt;− &lt;span style=&quot;color: black;&quot;&gt;ϵ&lt;/span&gt; ∇&lt;sub&gt;x&lt;/sub&gt;f (&lt;span style=&quot;mso-bidi-font-style: italic;&quot;&gt;x&lt;/span&gt;)) for several
values of &lt;span style=&quot;color: black;&quot;&gt;ϵ&lt;/span&gt; and choose the
one that results in the smallest objective function value. This last strategy
is called a &lt;span style=&quot;mso-bidi-font-style: italic;&quot;&gt;line search&lt;/span&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Steepest descent converges when
every element of the gradient is zero (or, in practice, very close to zero). In
some cases, we may be able to avoid running this iterative algorithm, and just
jump directly to the critical point by solving the equation ∇&lt;sub&gt;x&lt;/sub&gt;f (x)
= 0 for x.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;We are also sometimes interested
in a derivative of a derivative. This is known as a &lt;span style=&quot;mso-bidi-font-style: italic;&quot;&gt;second derivative&lt;/span&gt;. The
second derivative tells us how the first derivative will change as we vary the input.
This means it can be useful for determining whether a critical point is a local
maximum, a local minimum, or a saddle point.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;When &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;’’&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;gt; &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;,
this means that &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;’&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;)
increases as we move to the right, and &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;’&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;) decreases
as we move to the left.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://machlearn1.blogspot.com/feeds/507212554228778468/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://machlearn1.blogspot.com/2020/05/gradient-descent-method-ii.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/507212554228778468'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/507212554228778468'/><link rel='alternate' type='text/html' href='https://machlearn1.blogspot.com/2020/05/gradient-descent-method-ii.html' title='Gradient Descent Method II'/><author><name>Lakshman Jangid</name><uri>http://www.blogger.com/profile/09240524566513148282</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviy4krmI_Gana2qhmJFh2c5DGP3rIwhmFMnuv9z2biwRP9_DlT52ktuWG9Bt968Y6cPOGKM7YC0oRZi-oDdAKodIFSQ_hnLLMLB-7o-kPulOLtW7vQ28tTmfcQY1Vmg/s113/pp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1219980476801326118.post-5099666303258426676</id><published>2020-05-15T17:56:00.004+05:30</published><updated>2020-05-18T21:23:21.819+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Machine Learning Theory"/><title type='text'>Gradient Descent Algorithm I</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span lang=&quot;EN-IN&quot;&gt;It
is an optimization technique. Optimization refers to the task of either &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;minimizing
or maximizing some function &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;f &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;span style=&quot;mso-bidi-font-style: italic;&quot;&gt;x&lt;/span&gt;) by
altering &lt;span style=&quot;mso-bidi-font-style: italic;&quot;&gt;x&lt;/span&gt;. We usually phrase
most optimization problems in terms of minimizing &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;f &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;span style=&quot;mso-bidi-font-style: italic;&quot;&gt;x&lt;/span&gt;). Maximization may be obtained via
a minimization algorithm by minimizing &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;−&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;f &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;span style=&quot;mso-bidi-font-style: italic;&quot;&gt;x&lt;/span&gt;).&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;The function we want
to minimize or maximize is called the &lt;/span&gt;&lt;b style=&quot;font-family: inherit;&quot;&gt;objective function&lt;/b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;When we are
minimizing it, we may also call it the &lt;span style=&quot;mso-bidi-font-style: italic;&quot;&gt;cost
function&lt;/span&gt;, &lt;span style=&quot;mso-bidi-font-style: italic;&quot;&gt;loss function&lt;/span&gt;,
or &lt;span style=&quot;mso-bidi-font-style: italic;&quot;&gt;error function&lt;/span&gt;. For example,
we might say &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;x*&lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;= &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;arg min &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;f &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;(&lt;span style=&quot;mso-bidi-font-style: italic;&quot;&gt;x&lt;/span&gt;)
i.e. find the value of x such that f(x) is minimum at that value.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;The derivative of a function &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;y &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;f’ &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;)
from R to R, denoted as &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;f &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;‘&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;)
or (&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;dy/dx) &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;,
gives the slope of &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;f &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;) at the point &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;. It quantifies how
a small change in &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;x &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;gets scaled in order to
obtain a corresponding change in &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;. The derivative is therefore useful for minimizing a
function because it tells us how to change &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;x &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;in order to make a small improvement in &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;y&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;.
For example, we know that &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;f &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;x &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;− ϵ&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;sign(&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;f &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;)))
is less than &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;f &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;)
for small enough &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;ϵ&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;. We can thus reduce &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;f &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;) by moving &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;x &lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;in small steps with the opposite sign of the derivative.
This technique is called gradient descent.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinqp9NQ-TwdAb-CwuuFBPoDuM_iCDjXUUJnMxcEKIWi-iF8EoODxL1n_DD5RtYgFkFzPqlfdDK15khMt9eyWicW8ke61p5RbsnqAeqWyNeqGyF-r7AMXoxpQMl_ApYKLoCnPBdmgMNXc8P/s1600/41.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;568&quot; data-original-width=&quot;716&quot; height=&quot;504&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinqp9NQ-TwdAb-CwuuFBPoDuM_iCDjXUUJnMxcEKIWi-iF8EoODxL1n_DD5RtYgFkFzPqlfdDK15khMt9eyWicW8ke61p5RbsnqAeqWyNeqGyF-r7AMXoxpQMl_ApYKLoCnPBdmgMNXc8P/s640/41.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;When f 0(x) = 0, the
derivative provides no information about which direction to move. Points where f ‘(x) = 0 are
known as &lt;b&gt;critical&lt;/b&gt; points or &lt;b&gt;stationary&lt;/b&gt; points. A local minimum is a point where f (x) is lower
than at all neighboring points, so it is no longer possible to decrease f (x) by making
infinitesimal steps. A local maximum is
a point where f (x) is higher
than at all neighboring points, so it is not possible to increase f (x) by making
infinitesimal steps. Some critical points are neither maxima nor minima. These
are known as &lt;b&gt;saddle&lt;/b&gt; points.&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAHyXdKeYZqShI4H6zMXlNHKWEPjH4Z9NHUH6pJtl6oZVnmQgGQ0LtabeDvjnOVkVqB-a-3rHgec9nCaAmaYWsLhDOvpyianp5k4XDcSc5l0iFPl3D4d0WHTX8sqOQEPU-mMeE0PnOgsi_/s1600/42.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;238&quot; data-original-width=&quot;703&quot; height=&quot;211&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAHyXdKeYZqShI4H6zMXlNHKWEPjH4Z9NHUH6pJtl6oZVnmQgGQ0LtabeDvjnOVkVqB-a-3rHgec9nCaAmaYWsLhDOvpyianp5k4XDcSc5l0iFPl3D4d0WHTX8sqOQEPU-mMeE0PnOgsi_/s640/42.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;A point that obtains the absolute
lowest value of f (x) is a &lt;span style=&quot;mso-bidi-font-style: italic;&quot;&gt;global minimum&lt;/span&gt;. It is possible for
there to be only one global minimum or multiple global minima of the function.
It is also possible for there to be local minima that are not globally optimal.
In the context of deep learning, we optimize functions that may have many local
minima that are not optimal, and many saddle points surrounded by very flat
regions. All of this makes optimization very difficult, especially when the
input to the function is multidimensional. We therefore usually settle for finding
a value of that is very
low, but not necessarily minimal in any formal sense.&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgphq-n34Q8fZVeNlAR3sVbs-L1QBcZWUSwszVYJt2mOo0bgvriqkSh94zJbOLpJJ7rfTLaWqYt4_puus8jisEkPnOR0wVVhnB8yCboOPGDWo9eQBkbfm8uDIQKq99H84R3zzvJq5PLabgR/s1600/43.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;558&quot; data-original-width=&quot;739&quot; height=&quot;482&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgphq-n34Q8fZVeNlAR3sVbs-L1QBcZWUSwszVYJt2mOo0bgvriqkSh94zJbOLpJJ7rfTLaWqYt4_puus8jisEkPnOR0wVVhnB8yCboOPGDWo9eQBkbfm8uDIQKq99H84R3zzvJq5PLabgR/s640/43.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://machlearn1.blogspot.com/feeds/5099666303258426676/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://machlearn1.blogspot.com/2020/05/gradient-descent-algorithm-i.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/5099666303258426676'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/5099666303258426676'/><link rel='alternate' type='text/html' href='https://machlearn1.blogspot.com/2020/05/gradient-descent-algorithm-i.html' title='Gradient Descent Algorithm I'/><author><name>Lakshman Jangid</name><uri>http://www.blogger.com/profile/09240524566513148282</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviy4krmI_Gana2qhmJFh2c5DGP3rIwhmFMnuv9z2biwRP9_DlT52ktuWG9Bt968Y6cPOGKM7YC0oRZi-oDdAKodIFSQ_hnLLMLB-7o-kPulOLtW7vQ28tTmfcQY1Vmg/s113/pp.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinqp9NQ-TwdAb-CwuuFBPoDuM_iCDjXUUJnMxcEKIWi-iF8EoODxL1n_DD5RtYgFkFzPqlfdDK15khMt9eyWicW8ke61p5RbsnqAeqWyNeqGyF-r7AMXoxpQMl_ApYKLoCnPBdmgMNXc8P/s72-c/41.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1219980476801326118.post-2434643647394336780</id><published>2020-05-15T07:59:00.000+05:30</published><updated>2020-05-18T21:26:23.539+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Machine Learning Python"/><title type='text'>Stochastic Gradient Descent : Python</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;# Stochastic Gradient Descent method&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;# dev is for evaluation&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;from sklearn.datasets import make_classification&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;from sklearn.metrics import accuracy_score&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;from sklearn.model_selection import train_test_split&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;from sklearn.linear_model import SGDClassifier&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;import numpy as np&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;# function to generate predictors and responses&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;def get_data():&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; Make a sample classification dataset Returns : Independent variable y, dependent variable x&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; no_features = 30&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; redundant_features = int(0.1*no_features)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; informative_features = int(0.6*no_features)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; repeated_features = int(0.1*no_features)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; x,y = make_classification(n_samples=1000,n_features=no_features,flip_y=0.03,n_informative = informative_features, n_redundant = redundant_features ,n_repeated = repeated_features,random_state=7)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; return x,y&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;# function that will help to build and validate model&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;def build_model(x,y,x_dev,y_dev):&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; estimator = SGDClassifier(shuffle=True,loss=&quot;log&quot;,learning_rate = &quot;constant&quot;,eta0=0.0001,fit_intercept=True,penalty=&quot;none&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; estimator.fit(x,y)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; train_predcited = estimator.predict(x)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; train_score = accuracy_score(y,train_predcited)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; dev_predicted = estimator.predict(x_dev)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; dev_score = accuracy_score(y_dev,dev_predicted)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; print(&quot;Training Accuracy = %0.2f Dev Accuracy = %0.2f&quot;% (train_score,dev_score))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;# final function to invoke preceeding functions&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;if __name__ == &quot;__main__&quot;:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; x,y = get_data()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; # Divide the data into Train, dev and test&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; x_train,x_test_all,y_train,y_test_all = train_test_split(x,y,test_size= 0.3,random_state=9)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; x_dev,x_test,y_dev,y_test =&amp;nbsp; train_test_split(x_test_all,y_test_all,test_size=0.3,random_state=9)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; build_model(x_train,y_train,x_dev,y_dev)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;# How model works&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;def get_data():&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; Make a sample classification dataset Returns : Independent variable y, dependent variable x&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;&quot;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; no_features = 30&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; redundant_features = int(0.1*no_features)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; informative_features = int(0.6*no_features)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; repeated_features = int(0.1*no_features)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; x,y = make_classification(n_samples=500,n_features=no_features,flip_y=0.03,n_informative = informative_features, n_redundant = redundant_features ,n_repeated = repeated_features,random_state=7)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp; &amp;nbsp; return x,y&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;The first parameter is the number of instances required. In this case, we need 500 instances. The&amp;nbsp;&lt;/b&gt;&lt;b&gt;second parameter is about how many attributes per instance are required. We say that we&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;need 30. The third parameter, flip_y, randomly interchanges 3 percent of the instances.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;This is done to introduce noise in our data. The next parameter is about how many out of&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;those 30 features should be informative enough to be used in our classification. We&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;specified that 60 percent of our features, that is, 18 out of 30, should be informative. The&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;next parameter is about redundant features. These are generated as a linear combination of&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;the informative features in order to introduce correlation among the features. Finally, the&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;repeated features are duplicate features that are drawn randomly from both the informative&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;and redundant features.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;# split data into training and test sets&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;# Divide the data into Train, dev and test&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;x_train,x_test_all,y_train,y_test_all = train_test_split(x,y,test_size= 0.3,random_state=9)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;x_dev,x_test,y_dev,y_test = train_test_split(x_test_all,y_test_all,test_size=0.3,random_state=9)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;# make model&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;build_model(x_train,y_train,x_dev,y_dev)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-size: inherit; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: inherit; overflow-wrap: break-word; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Training Accuracy = 0.83 Dev Accuracy = 0.81&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-size: inherit; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: inherit; overflow-wrap: break-word; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;background-color: white; white-space: pre-wrap;&quot;&gt;&lt;b&gt;# In build_model, use scikit-learn’s SGDClassifier class to build &lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;white-space: pre-wrap;&quot;&gt;stochastic gradient &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;# descent method&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;estimator = SGDClassifier(shuffle=True,loss=&quot;log&quot;, learning_rate = &quot;constant&quot;,eta0=0.0001,fit_intercept=True,penalty=&quot;none&quot;)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;b&gt;The first parameter is shuffle,as in perceptron, after going through all the records once, we need to shuffle our input records when we start the next iteration. The shuffle parameter is used for the&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;b&gt;same. The default value of shuffle is true, we have included it here for explanation purposes. Our loss function is log loss: we want to do a logistic regression and we will specify this using the loss parameter. Our learning rate, eta, is a constant that we will specify with the learning_rate parameter. We will provide the value for our learning rate using the eta0 parameter. We will then proceed to say that we need to fit the intercept, as we have not centered our data by its mean. Finally, the penalty parameter controls the type of shrinkage required. In our case, we will say that we don’t need any shrinkage using the none string.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;# fit the model and evaluation of model with training and dev dataset:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;estimator.fit(x,y)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;train_predcited = estimator.predict(x)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;train_score = accuracy_score(y,train_predcited)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;dev_predicted = estimator.predict(x_dev)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;dev_score = accuracy_score(y_dev,dev_predicted)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;print(&quot;Training Accuracy = %0.2f Dev Accuracy = %0.2f&quot;%(train_score,dev_score))&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-size: inherit; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: inherit; overflow-wrap: break-word; white-space: pre-wrap; word-break: break-all;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Training Accuracy = 0.84 Dev Accuracy = 0.83&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://machlearn1.blogspot.com/feeds/2434643647394336780/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://machlearn1.blogspot.com/2020/05/stochastic-gradient-descent-python.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/2434643647394336780'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/2434643647394336780'/><link rel='alternate' type='text/html' href='https://machlearn1.blogspot.com/2020/05/stochastic-gradient-descent-python.html' title='Stochastic Gradient Descent : Python'/><author><name>Lakshman Jangid</name><uri>http://www.blogger.com/profile/09240524566513148282</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviy4krmI_Gana2qhmJFh2c5DGP3rIwhmFMnuv9z2biwRP9_DlT52ktuWG9Bt968Y6cPOGKM7YC0oRZi-oDdAKodIFSQ_hnLLMLB-7o-kPulOLtW7vQ28tTmfcQY1Vmg/s113/pp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1219980476801326118.post-8635915815808944689</id><published>2020-05-14T19:38:00.003+05:30</published><updated>2020-05-18T21:23:22.365+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Machine Learning Theory"/><title type='text'>Principal component analysis (PCA)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US; mso-fareast-font-family: FreeSerif-Identity-H;&quot;&gt;It is a statistical procedure that uses an &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US; mso-fareast-font-family: FreeSerif-Identity-H;&quot;&gt;orthogonal transformation &lt;/span&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US; mso-fareast-font-family: FreeSerif-Identity-H;&quot;&gt;to convert a set of observations of
possibly correlated variables&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;into a set of values of &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: Arial, sans-serif;&quot;&gt;linearly uncorrelated &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;variables&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;called &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;principal
components&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;. The number of
principal&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;components is less than or equal to the number of
original&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;variables. This transformation is defined in such a
way&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US; mso-fareast-font-family: FreeSerif-Identity-H;&quot;&gt;that the first principal component has the largest
possible&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: Arial, sans-serif;&quot;&gt;variance&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;, and each succeeding
component, in turn,,&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;&amp;nbsp;has the highest variance possible under the
constraint&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;that it is &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: Arial, sans-serif;&quot;&gt;orthogonal &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;to the preceding components.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;The resulting vectors are an uncorrelated orthogonal
basis&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;set. The principal components are orthogonal because&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;they are the &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: Arial, sans-serif;&quot;&gt;eigenvectors &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;of the &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: Arial, sans-serif;&quot;&gt;covariance matrix&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;, which&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;is &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: Arial, sans-serif;&quot;&gt;symmetric&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;. PCA is sensitive to the relative scaling of&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;the original variables.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US; mso-fareast-font-family: FreeSerif-Identity-H;&quot;&gt;PCA can be done by &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US; mso-fareast-font-family: FreeSerif-Identity-H;&quot;&gt;eigenvalue decomposition&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;of a data &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: Arial, sans-serif;&quot;&gt;covariance &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;(or &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: Arial, sans-serif;&quot;&gt;correlation&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;) matrix or &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: Arial, sans-serif;&quot;&gt;singular&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: Arial, sans-serif;&quot;&gt;value decomposition &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;of a &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: Arial, sans-serif;&quot;&gt;data matrix&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;, usually after mean&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;centering (and normalizing or using &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: Arial, sans-serif;&quot;&gt;Z-scores&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;) the data&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;matrix for each attribute.&lt;/span&gt;&lt;span style=&quot;color: #000045; font-family: Arial, sans-serif;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;The results of a PCA are&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US; mso-fareast-font-family: FreeSerif-Identity-H;&quot;&gt;usually discussed in terms of component scores,
sometimes&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;called factor scores (the transformed variable values&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;corresponding to a particular data point), and
loadings&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;(the weight by which each standardized original variable&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;should be multiplied to get the component score).&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;PCA is the simplest of the true &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: Arial, sans-serif;&quot;&gt;eigenvector&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;-based multivariate&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;analyses. Often, its operation can be thought of&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;as revealing the internal structure of the data in a
way&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US; mso-fareast-font-family: FreeSerif-Identity-H;&quot;&gt;that best explains the variance in the data. If a
multivariate&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;dataset is visualized as a set of coordinates in high-dimensional&lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: Arial, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;data space (1 axis per variable), PCA can&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;supply the user with a lower-dimensional picture, a
projection&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;or “shadow” of this object when viewed from its&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;(in some sense; see &lt;/span&gt;&lt;span style=&quot;color: #450000; font-family: Arial, sans-serif;&quot;&gt;below&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;) most informative viewpoint.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;This is done by using only the first few principal
components&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;so that the dimensionality of the transformed data&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;is reduced.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='https://machlearn1.blogspot.com/feeds/8635915815808944689/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://machlearn1.blogspot.com/2020/05/principal-component-analysis-pca.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/8635915815808944689'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/8635915815808944689'/><link rel='alternate' type='text/html' href='https://machlearn1.blogspot.com/2020/05/principal-component-analysis-pca.html' title='Principal component analysis (PCA)'/><author><name>Lakshman Jangid</name><uri>http://www.blogger.com/profile/09240524566513148282</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviy4krmI_Gana2qhmJFh2c5DGP3rIwhmFMnuv9z2biwRP9_DlT52ktuWG9Bt968Y6cPOGKM7YC0oRZi-oDdAKodIFSQ_hnLLMLB-7o-kPulOLtW7vQ28tTmfcQY1Vmg/s113/pp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1219980476801326118.post-2085253061233541210</id><published>2020-05-12T08:03:00.000+05:30</published><updated>2020-05-18T21:23:21.308+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Machine Learning Theory"/><title type='text'> Building Random Forests</title><content type='html'>&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;To build a random forest model, you need to decide on
the number of trees to build. Let&#39;s say we want to build ten trees. These trees
will be built completely independent&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;from each other, and&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;make random choices to make sure they are&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;distinct.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;To build a tree, we first take what is called a &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;bootstrap &lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;sample of our data. A bootstrap&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;sample means from our &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;n_samples &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;data
points, we repeatedly draw an example randomly&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;with replacement (i.e. the same sample can be picked
multiple times), &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;n_sam&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;ples &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;times.
This will create a dataset that is as big as the original dataset, but some&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;data points will be missing from it, and some will be
repeated.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;To illustrate, let&#39;s say we want to create a bootstrap
sample of the list &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;[&#39;a&#39;,
&#39;b&#39;, &#39;c&#39;,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;&#39;d&#39;]&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;.
A possible bootstrap sample would be &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;[&#39;b&#39;,
&#39;d&#39;, &#39;d&#39;, &#39;c&#39;]&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;. Another possible&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;sample would be &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;[&#39;d&#39;,
&#39;a&#39;, &#39;d&#39;, &#39;a&#39;]&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;Next, a decision tree is built based on this newly
created dataset. However, the algorithm&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;we described for the decision tree is slightly
modified. Instead of looking for&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;the best test for each node, in each node, the
algorithm randomly selects a subset of&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;the features and looks for the best possible test
involving one of these features. The&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;amount of features that are selected is controlled by
the &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;max_features &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;parameter.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;This selection of a subset of features is repeated
separately in each node so that each&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;node in a tree can make a decision using a different
subset of the features.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;The bootstrap sampling leads to each decision tree in
the random forest being built&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;on a slightly different dataset. Because of the
selection of features in each node, each&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;split in each tree operates on a different subset of
features. Together these two mechanisms&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;ensure that all the trees in the random forests are
different.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;A critical parameter in this process is &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;max_features&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;. If we set &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;max_features
&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;to &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;n_fea&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;tures&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;,
that means that each split can look at all features in the dataset, and no
randomness&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;will be injected. If we set &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;max_features &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;to one, that means that the splits&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;have no choice at all on which feature to test, and
can only search over different&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;thresholds for the feature that was selected randomly.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;Therefore, a high &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;max_features &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;means
that the trees in the random forest will be&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;quite similar, and they will be able to fit the data
easily, using the most distinctive features.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;A low &lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;max_features
&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;means that the trees in
the random forest will be quite&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;different and that each tree might need to be very deep
in order to fit the data well.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;To make a prediction using the random forest, the
algorithm first makes a prediction&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;for every tree in the forest. For regression, we can
average these results to get our final&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;prediction. For classification, the “soft voting”&amp;nbsp; strategy is used. This means each algorithm&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;makes a “soft” prediction, providing a probability for
each possible output&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;label. The probabilities predicted by all the trees
are averaged, and the class with the&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;highest label is predicted.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://machlearn1.blogspot.com/feeds/2085253061233541210/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://machlearn1.blogspot.com/2020/05/building-random-forests.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/2085253061233541210'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/2085253061233541210'/><link rel='alternate' type='text/html' href='https://machlearn1.blogspot.com/2020/05/building-random-forests.html' title=' Building Random Forests'/><author><name>Lakshman Jangid</name><uri>http://www.blogger.com/profile/09240524566513148282</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviy4krmI_Gana2qhmJFh2c5DGP3rIwhmFMnuv9z2biwRP9_DlT52ktuWG9Bt968Y6cPOGKM7YC0oRZi-oDdAKodIFSQ_hnLLMLB-7o-kPulOLtW7vQ28tTmfcQY1Vmg/s113/pp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1219980476801326118.post-5761696235763538350</id><published>2020-05-12T07:54:00.001+05:30</published><updated>2020-05-18T21:23:22.011+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Machine Learning Theory"/><title type='text'>Ensembles of Decision Trees: Random Forests</title><content type='html'>&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;font face=&quot;arial&quot; size=&quot;2&quot;&gt;As the main drawback of decision trees is that they tend
to overfit the&amp;nbsp;training data. Random forests&amp;nbsp;are one way to address this problem. Random forests
are essentially a collection of&amp;nbsp;decision trees, where each tree is slightly different
from the others.&amp;nbsp;The idea of random forests is that each tree might do
a relatively good job of predicting,&amp;nbsp;but will likely overfit on part of the data.&amp;nbsp;If we build many trees, all of which work well and
overfit in different ways, we can&amp;nbsp;reduce the amount of overfitting by averaging their
results.&amp;nbsp;To implement this strategy, we need to build many
decision trees. Each tree should do&amp;nbsp;an acceptable job of predicting the target, and should
also be different from the other&amp;nbsp;trees. Random forests get their name from injecting
randomness into the tree building&amp;nbsp;to ensure each tree is different. There are two ways
in which the trees in a random&amp;nbsp;forest are randomized: by selecting the data points
used to build a tree and by selecting&amp;nbsp;the features in each split test.&lt;/font&gt;&lt;/p&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://machlearn1.blogspot.com/feeds/5761696235763538350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://machlearn1.blogspot.com/2020/05/ensembles-of-decision-trees-random.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/5761696235763538350'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/5761696235763538350'/><link rel='alternate' type='text/html' href='https://machlearn1.blogspot.com/2020/05/ensembles-of-decision-trees-random.html' title='Ensembles of Decision Trees: Random Forests'/><author><name>Lakshman Jangid</name><uri>http://www.blogger.com/profile/09240524566513148282</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviy4krmI_Gana2qhmJFh2c5DGP3rIwhmFMnuv9z2biwRP9_DlT52ktuWG9Bt968Y6cPOGKM7YC0oRZi-oDdAKodIFSQ_hnLLMLB-7o-kPulOLtW7vQ28tTmfcQY1Vmg/s113/pp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1219980476801326118.post-6714306824705577444</id><published>2020-05-11T18:06:00.001+05:30</published><updated>2020-05-18T21:23:22.107+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Machine Learning Theory"/><title type='text'>Building learning models with Ensemble Learning</title><content type='html'>&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;When we select a model, the most
commonly used procedure is to choose the one with the smallest error on the
training dataset. The problem with this approach is that it will not always
work. The model might get biased or overfit the training data. Even when we compute
the model using cross-validation, it can perform poorly on unknown data. One of
the main reasons ensemble learning is so effective is because it reduces the
overall risk of making a poor model selection. This enables it to train in a
diverse manner and then&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;perform well on unknown data.
When we build a model using ensemble learning, the individual models need to
exhibit some diversity. This would allow them to capture various nuances in our
data; hence the overall model becomes more accurate. The diversity is achieved
by using different training parameters for each individual model. This allows
individual models to generate different decision boundaries for training data. This
means that each model will use different rules to make an inference, which is a
powerful way of validating the final result. If there is agreement among the
models, then we know that the output is correct.&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://machlearn1.blogspot.com/feeds/6714306824705577444/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://machlearn1.blogspot.com/2020/05/building-learning-models-with-ensemble.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/6714306824705577444'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/6714306824705577444'/><link rel='alternate' type='text/html' href='https://machlearn1.blogspot.com/2020/05/building-learning-models-with-ensemble.html' title='Building learning models with Ensemble Learning'/><author><name>Lakshman Jangid</name><uri>http://www.blogger.com/profile/09240524566513148282</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviy4krmI_Gana2qhmJFh2c5DGP3rIwhmFMnuv9z2biwRP9_DlT52ktuWG9Bt968Y6cPOGKM7YC0oRZi-oDdAKodIFSQ_hnLLMLB-7o-kPulOLtW7vQ28tTmfcQY1Vmg/s113/pp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1219980476801326118.post-8624689842393902776</id><published>2020-05-11T18:03:00.001+05:30</published><updated>2020-05-18T21:23:22.332+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Machine Learning Theory"/><title type='text'>Ensemble Learning</title><content type='html'>&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US;&quot;&gt;Ensemble
Learning &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;refers to the process of building multiple models and then combining them
in a way that can produce better results than individual models. These
individual models can be classifiers, regressors, or anything else that models
data in some way. Ensemble learning is used extensively across multiple fields
including data classification, predictive modeling, anomaly detection, and so
on.&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US;&quot;&gt;Why
ensemble learning:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Arial&amp;quot;,&amp;quot;sans-serif&amp;quot;; mso-ansi-language: EN-US;&quot;&gt; In order to understand this, let&#39;s take a real-life
example. You want to buy a new TV, but you don&#39;t know what the latest models are.
Your goal is to get the best value for your money, but you don&#39;t have enough knowledge
on this topic to make an informed decision. When you have to make a decision about
something like this, you go around and try to get the opinions of multiple
experts in&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, sans-serif;&quot;&gt;the domain. This will help you
make the best decision. More often than not, instead of just relying on a
single opinion, you tend to make a final decision by combining the individual decisions
of those experts. The reason we do that is because we want to minimize the possibility
of a wrong or suboptimal decision.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='https://machlearn1.blogspot.com/feeds/8624689842393902776/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://machlearn1.blogspot.com/2020/05/ensemble-learning.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/8624689842393902776'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/1219980476801326118/posts/default/8624689842393902776'/><link rel='alternate' type='text/html' href='https://machlearn1.blogspot.com/2020/05/ensemble-learning.html' title='Ensemble Learning'/><author><name>Lakshman Jangid</name><uri>http://www.blogger.com/profile/09240524566513148282</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgviy4krmI_Gana2qhmJFh2c5DGP3rIwhmFMnuv9z2biwRP9_DlT52ktuWG9Bt968Y6cPOGKM7YC0oRZi-oDdAKodIFSQ_hnLLMLB-7o-kPulOLtW7vQ28tTmfcQY1Vmg/s113/pp.jpg'/></author><thr:total>0</thr:total></entry></feed>