<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Vladyslav Nykoliuk on Medium]]></title>
        <description><![CDATA[Stories by Vladyslav Nykoliuk on Medium]]></description>
        <link>https://medium.com/@vladyslav-nykoliuk?source=rss-c14ea2bb7a0c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Vladyslav Nykoliuk on Medium</title>
            <link>https://medium.com/@vladyslav-nykoliuk?source=rss-c14ea2bb7a0c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 08:45:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vladyslav-nykoliuk/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The World Happiness Report Analysis]]></title>
            <link>https://vladyslav-nykoliuk.medium.com/the-world-happiness-report-analysis-2fe0ba4f1b4b?source=rss-c14ea2bb7a0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/2fe0ba4f1b4b</guid>
            <dc:creator><![CDATA[Vladyslav Nykoliuk]]></dc:creator>
            <pubDate>Mon, 19 Jul 2021 06:18:08 GMT</pubDate>
            <atom:updated>2021-07-19T06:34:58.848Z</atom:updated>
            <content:encoded><![CDATA[<p>While studying data analysis in one of my classes, I came across an interesting report that I decided to analyse and visualize based on the data scavenged.</p><h3>My General Findings</h3><h4>People in countries with smaller populations tend to be happier than those with a large population count</h4><p><strong>Reasoning:</strong></p><p>Countries with a smaller population such as Denmark, Finland, Switzerland, Norway, and Canada overall had a greater healthy life expectancy, more social support, and generally more happiness than countries of larger populations such as Afghanistan, Albania, and Bangladesh.</p><h4>Countries in Europe have the highest happiness score whereas countries in Africa have the least</h4><p><strong>Reasoning:</strong></p><p>Based on the data from the report, most countries located in Europe had a greater life expectancy, social support, freedom to make life choices, and as a result a lower perception of corruption than countries in Africa, Asia, and South America.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*Y8dKN0F8S0lA1AS5V_Z6MA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*h1pM3QBk6fp19mUvMD0Hcw.png" /><figcaption>Health Expectancy: Europe vs. Africa</figcaption></figure><h4>Countries with a higher level of social support and freedom to make life choices had a greater life expectancy and overall happiness level than countries with the opposite</h4><p><strong>Reasoning:</strong></p><p>The data indicates that countries where citizens received more social support and freedom to make personal life choices had a greater life ladder, lower perception of corruption, and general happiness.</p><p>It is no mystery that citizens living in countries of smaller populations will potentially have more outreach and access to support than countries of large populations where resources might be scattered or better yet, <strong>misappropriated.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2fe0ba4f1b4b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Sensibility of the World]]></title>
            <link>https://vladyslav-nykoliuk.medium.com/the-sensibility-of-the-world-2b6914b17f3b?source=rss-c14ea2bb7a0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b6914b17f3b</guid>
            <dc:creator><![CDATA[Vladyslav Nykoliuk]]></dc:creator>
            <pubDate>Sat, 15 May 2021 04:08:09 GMT</pubDate>
            <atom:updated>2021-05-15T05:07:51.569Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tUnSlVj_T4HhU3sr" /></figure><p>Humans, from birth, feel interconnectivity with nature, as it is one of the most stable things throughout our lives, constantly evolving and growing along with us. Nature, along with animals, gives us perspective as to how far we have developed, unlike our animal counterparts, but also indicates ways in which we compare to each other. For example, a bird tends to her child with the similar love a mother would to a child, an animal hurts the same way humans do, and experiences similar feelings to humans, just not in the same form. As Nahid Angha states in “On Beauty”, “Behind both the natural and human manifestations of beauty lies the same essence that expresses our being while transcending both the human individual and the particular in nature in the multiplicity of its expressions. The essence of beauty is imparted into the images of beauty, just as invisible sound waves travel into space in accordance with the laws of physics so that any susceptible receiver, according to the level of its capacity, can receive. The essence of beauty is crystallized and expressed in figures and forms and colors and melodies that are suited to the perceptive sense and understanding of humanity. (Angha, 21)” Nature has many different components to it, some of which can speak out to a person and open them up to their inner world.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3HUVncNjab8Acp4D" /></figure><p>In my personal experience, I sought nature out for guidance, patience, calmness, and tranquility. Being in the forest, I can feel the connection between the natural world that is here now, and the natural world that was here millions of years ago when the first homosapiens wandered the land. A feeling of simplicity and pure tranquility come about whenever I am out in nature, or even pass by nature. Similar to “The Journey” by Nahid Angha, “Likewise, worshipping and practicing under the instruction of a wise spiritual teacher will reach fruition in the tranquility and calm that characterizes the salek, bringing him to a deeper and more carefully aware way of thinking about the disciplines of his outward life as well as those of his inner self. The harmony of this serves as the introduction to the achievement of that genuine understanding that both permits and results from undertaking the journey of the inner spirit. (Angha, 13)” Nature gives us the possibility to truly reveal ourselves to it, without worrying about what it’ll think of us. The acceptance of nature is seen anywhere in the world — Chernobyl being one. After the impactful event of Chernobyl, scientists and mankind thought the city was going to be uninhabitable and a wasteland but 35 years later, nature has accepted the destruction humans have brought upon it and outgrew itself from inside the damage. Pictures of the site now will indicate that no matter how much mankind destroys nature, cuts down trees, and breaks leaves off plants, nature will always grow back and adapt to the change. This goes to show that almost nothing can interfere with nature, as its path is set no matter how long it takes to reach it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*jyrdQmIWVVUtIeRX" /></figure><p>Nature often gives us the time and mental space to clear our heads, clear all our worries, and figure out what is more important, in a practical sense. As Henry Benton, a notable writer, once said, “We need another and a wiser and perhaps a more mystical concept of animals. Remote from universal nature, and living by complicated artifice, a man in civilization surveys the creature through the glass of his knowledge and sees thereby a feather magnified and the whole image in distortion. We patronize them for their incompleteness, for their tragic fate of having taken form so far below ourselves. And therein we err and greatly err. For the animal shall not be measured by man. In a world older and more complete than ours they move, finish, and complete, gifted with extensions of the senses we have lost or never attained, living by voices we shall never hear. They are not brethren, they are not underlings; they are other nations, caught with ourselves in the net of life and time, fellow prisoners of the splendor and travail of the earth. (Benton, 1928)” My favorite line from the novel is written above, “they are not brethren, they are not underlings; they are other nations, caught with ourselves in the net of life and time…)” because it really puts into perspective the minimal role we have on Earth, yet the damage we cause upon it can sum up for millions of years of mankind, in only a few hundred. Animals are often misconceived as having limited abilities when compares to humans, but it is we, that have limited abilities compared to animals for we have a much different version of the sense of smell, fear, and anxiety, where we lack, the animal compensates and vise versa. We are mere prisoners, in a way — as we are in a way stranded on this beautiful planet we call Earth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*IZQB7IwXs53Ni6wG" /></figure><p>The gratitude of nature is something that most people in the US and other parts of the world don’t appreciate, sadly. People, being tied up in our everyday affairs, often overlook nature as something that is always there and that doesn’t need any attention, since it’ll always be around — when that couldn’t be further from the truth. Mankind eradicates so much nature yearly, primarily because of the lack of gratitude for nature, where there is a bigger promise of monetary accretion. “Gratitude is the understanding that many millions of things come together and live together and mesh together and breathe together in order for us to take even one more breath of air, that the underlying gift of life and incarnation as a living, participating human being is a privilege; that we are miraculously part of something, rather than nothing. Even if that something is temporary pain or despair, we inhabit a living world, with real faces, real voices, laughter, the color blue, the green of the fields, the freshness of a cold wind, or the tawny hue of a winter landscape.” Nature is single-handedly the most important aspect of Earth, so it is vital and untenable that we do everything in our power to nourish, maintain and support it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NrQqVzr2Wh4Z-53h" /></figure><p><strong>Citations:</strong></p><p>Nahid, Angha. <em>Sufism: An Inquiry. </em>International Organization of Sufism, 2013</p><p>Beston, Henry. <em>The Outermost House. </em>Doubleday and Doran, 1928</p><p>Nahid, Angha. <em>The Journey: Seyr Va Soluk</em>. International Organization of Sufism, 1991</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b6914b17f3b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Common Data Structures and How to Use Them]]></title>
            <link>https://vladyslav-nykoliuk.medium.com/common-data-structures-and-how-to-use-them-30c9872ef04d?source=rss-c14ea2bb7a0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/30c9872ef04d</guid>
            <dc:creator><![CDATA[Vladyslav Nykoliuk]]></dc:creator>
            <pubDate>Mon, 08 Mar 2021 04:52:38 GMT</pubDate>
            <atom:updated>2021-03-08T04:52:38.959Z</atom:updated>
            <content:encoded><![CDATA[<p>Data Structures are fundamental to the core of Computer Science and are used in our everyday life more often than we think. When you’re scrolling your photo gallery, you’re using a linked list data structure to filter through your saved images, or when you’re checking your email, updating a YouTube playlist, and visiting your call logs, you’re using a real-life implementation of Queue to organize these lists. It is no wonder we use data structures all the time as they provide a dependable and secure method of utilizing data. Let’s dive into some common data structures and how to actually use them.</p><h3>Linked Lists</h3><p>A linked list is a linear data structure, in which the elements are not stored at contiguous memory locations, and instead, continue the sequence to the next node.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/276/1*u3LFADHYu8jlpwv7yR8xSQ.png" /><figcaption>Linked List Example</figcaption></figure><p>The elements in the list are known as nodes. The head defines the first element of the array whereas the tail defines the last.</p><p>There are three types of linked lists:</p><p><strong>Singly Linked List — </strong>Transversal can only go in one direction, from head to tail.</p><p><strong>Doubly Linked List —</strong> Transversal can be done in both directions.</p><p><strong>Circular Linked List — </strong>Lists where the previous head directs to the tail or vise versa.</p><p>Transversing a linked list: (Pseudocode)</p><pre># Given an array and its head<br># sort through each node of the array following the head node</pre><pre># set data you want to find and use in a while loop<br># when the data is found the node index will be returned</pre><p>Code: (Python)</p><pre>def search(self, data):     <br>    current = self.head     <br>    found = False     <br>    while current and found is False:         <br>        if current.get_data() == data:             <br>            found = True         <br>        else:             <br>            current = current.get_next()     <br>    if current is None:         <br>       raise ValueError(&quot;Data not in list&quot;)         <br>    return current</pre><h3>Arrays</h3><p>Arrays are a collection of data with a fixed size depending on the size of the elements. Any integers, floats, and strings can be stored in arrays.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/335/1*e6ViCVxN4Bpk17bs3Viiug.gif" /><figcaption>Array Example</figcaption></figure><p>Array nodes are referenced through their index and all possible array operations are get, insert, search, update and delete.</p><p>Array: (Pseudocode)</p><pre># Get array<br># run .index() on element you want index of<br># index of node is returned</pre><p>Code: (Python)</p><pre>list = [&quot;One&quot;, &quot;Two&quot;, &quot;Three&quot;]<br>print(list.index(&quot;Two&quot;))</pre><pre>nums = [4, 3, 5, 9, 0, 2]<br>print(nums.index(3))</pre><h3>Stacks</h3><p>Stacks are structures that store elements based on when they are inserted. The main thing to remember is LIFO- Last In First Out which means the most recently inserted element will be accessed first. Think of it as you typing out a draft. Every time you make a change, it gets added to the stack, with the most recent change being the furthest at the top and your start will be at the bottom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*K7yPVd2EyNa61yBFxF-0Zg.png" /><figcaption>Stack Example</figcaption></figure><p>Stack Implementation: (Pseudocode)</p><pre># Initiate Stack<br># append several elements<br># get index of a specific element<br># remove a certain element</pre><p>Stack Implementation: (Python)</p><pre>stack <strong>=</strong> []<br></pre><pre>stack.append(&#39;a&#39;)</pre><pre>stack.append(&#39;b&#39;)</pre><pre>stack.append(&#39;c&#39;)</pre><pre>print(stack)<br></pre><pre>print(stack.get(&#39;a&#39;))<br></pre><pre>stack.pop(&#39;b&#39;)</pre><pre>stack.pop(&#39;c&#39;)</pre><h4>Resources:</h4><ul><li><a href="https://www.codefellows.org/blog/implementing-a-singly-linked-list-in-python/">Implementing a Singly Linked List in Python</a></li><li><a href="https://towardsdatascience.com/8-common-data-structures-every-programmer-must-know-171acf6a1a42">8 Common Data Structures every Programmer must know</a></li></ul><p><a href="https://www.freecodecamp.org/news/the-top-data-structures-you-should-know-for-your-next-coding-interview-36af0831f5e3/">https://www.freecodecamp.org/news/the-top-data-structures-you-should-know-for-your-next-coding-interview-36af0831f5e3/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30c9872ef04d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to build a Django web app from scratch (tutorial)]]></title>
            <link>https://medium.com/analytics-vidhya/how-to-build-a-django-web-app-from-scratch-tutorial-20034f0a3043?source=rss-c14ea2bb7a0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/20034f0a3043</guid>
            <category><![CDATA[django-authentication]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[django]]></category>
            <dc:creator><![CDATA[Vladyslav Nykoliuk]]></dc:creator>
            <pubDate>Thu, 04 Mar 2021 06:50:39 GMT</pubDate>
            <atom:updated>2021-03-09T17:01:06.381Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to what I hope will be a very detailed and useful tutorial on building a Django web app from scratch to production. Having developed dozens of Django projects prior, I have acquired certain tips and tricks to increase efficiency in each Django project that I will present in the form of a tutorial. This tutorial is a step-by-step process of how I go about building robust Django applications. <strong>Enjoy!</strong></p><p>You can check out the deployment here: <a href="https://foodanic.herokuapp.com/">Live Link</a></p><p>Demo:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ReKlAB_OhD9yEaot.jpeg" /></figure><h3>Part 1 🚀</h3><p>For this sample project, we’ll go a little beyond a simple Todo app or Blog site — we will build out a food recipe app with full user authentication, CRUD features, and deploy the app to live production on Heroku.</p><h3>The Directory</h3><p>The first step in any new project is setting up the directory. If you would like your Django project in a specific directory, navigate to it before running the startproject command. Create a new Django project with the following command:</p><pre>django-admin startproject [projectname]</pre><p>This should generate a file structure as such:</p><pre>├─ foodanic (our sample project title)<br>│  ├─ __init__.py<br>│  ├─ asgi.py<br>│  ├─ settings.py<br>│  ├─ urls.py<br>│  ├─ wsgi.py<br>├─ manage.py</pre><p>Let’s quickly add a folder titled templates into the directory with foodanic/ and manage.py</p><h3>The Environment</h3><p>The next crucial step is a virtual environment to contain all our dependencies in one module.</p><p>To create a new virtual environment:</p><pre>virtualenv env</pre><p>*Note: the [env] can be anything you want to name your virtual environment*</p><p>To activate the environment:</p><pre>source env/bin/activate</pre><p>To deactivate the environment:</p><pre>deactivate</pre><p>After you create and activate the environment, an (env) tag will appear in your terminal next to your directory name.</p><h3>The Settings:</h3><p>This is a step you have to remember for all future projects because a proper initial settings setup will prevent bugs in the future.</p><p>In your settings.py file, at the top, add import os next scroll down to the TEMPLATES section and make the following change in DIRS:</p><pre>import os</pre><pre>&#39;DIRS&#39;: [os.path.join(BASE_DIR, &#39;templates&#39;)],</pre><p>This allows you to forward the root template of the project to the main templates directory, for future reference to the base.html file.</p><p>While we’re at it, let’s install Django into our app with:</p><pre>pip install django</pre><p>Next, we will install a middleware that helps Heroku process images for Django applications called whitenoise.</p><p>To install the dependency, run:</p><pre>pip install whitenoise</pre><p>Add whitenoise to your MIDDLEWARE:</p><pre># settings.py<br>MIDDLEWARE = [<br>   ...<br>   &#39;whitenoise.middleware.WhiteNoiseMiddleware&#39;,<br>]</pre><p>Every time we add a new dependency to the project, you’ll want to freeze them to a file called requirements.txt.</p><p>To do this run:</p><pre>pip freeze &gt; requirements.txt</pre><p>Static and Media</p><p>Static and media will serve the images on our app. Below the defined STATIC_URL in the settings.py, add</p><pre>#settings.py</pre><pre>STATIC_ROOT = os.path.join(BASE_DIR, &#39;staticfiles&#39;)<br>STATIC_TMP = os.path.join(BASE_DIR, &#39;static&#39;)<br>STATICFILES_DIRS = (<br>    os.path.join(BASE_DIR, &#39;static&#39;),<br>)<br>STATICFILES_STORAGE = &#39;whitenoise.storage.CompressedManifestStaticFilesStorage&#39;</pre><pre>MEDIA_URL = &#39;/media/&#39;<br>MEDIA_ROOT = os.path.join(BASE_DIR, &#39;media&#39;)<br>os.makedirs(STATIC_TMP, exist_ok=True)<br>os.makedirs(STATIC_ROOT, exist_ok=True)<br>os.makedirs(MEDIA_ROOT, exist_ok=True)</pre><p>This sets up our static and media directories in the most optimal way to serve our app.</p><h3>.gitignore</h3><p>Another important step in starting a Django project is the .gitignore file which will ignore the directories/files listed there.</p><p>Create a .gitignore with:</p><pre>touch .gitignore</pre><p>Let’s add the virtual environment we created to it so it doesn’t take up extra cloud space on Github.</p><pre># .gitignore<br>env/</pre><h3>Part 2 🚲</h3><p>Now that we have our project set up the way we want, let’s begin by creating our first app to handle the logic. Along with that, let’s also create a users app that we will use for User Authentication in a moment.</p><p>Create a new app with:</p><pre>python manage.py startapp app<br>python manage.py startapp users</pre><p>Add the app to settings.py:</p><pre># settings.py<br>INSTALLED_APPS = [<br>    &#39;app&#39;,<br>    &#39;users&#39;,<br>     ...<br>]</pre><p>Now in order for our apps to be routed properly in our web app, we need to include our other apps in the main foodanic/urls.py.</p><pre># foodanic/urls.py</pre><pre>from django.contrib import admin<br>from django.urls import path, include<br>from django.conf.urls.static import static<br>from django.conf import settings</pre><pre>urlpatterns = [<br>    path(&#39;admin/&#39;, admin.site.urls),<br>    path(&#39;&#39;, include(&#39;app.urls&#39;)),<br>    path(&#39;u/&#39;, include(&#39;users.urls&#39;)),<br>]</pre><pre>if settings.DEBUG:<br>    urlpatterns += static(settings.MEDIA_URL, document_root = settings.MEDIA_ROOT)</pre><h3>Apps</h3><p>Inside the new app and users directory, let’s add two files and two folders.</p><pre>Files to add:         Folders to add:  (for each respectively)<br>- urls.py             - app/templates/app       <br>- forms.py            - users/templates/users</pre><p>The new app and users directory will look like this:</p><pre>├─ app<br>│  ├─ migrations/<br>|  ├─ templates<br>|  |  └── app/<br>│  ├─ __init__.py<br>│  ├─ admin.py<br>│  ├─ apps.py<br>│  ├─ forms.py<br>│  ├─ models.py<br>│  ├─ tests.py<br>│  ├─ urls.py<br>│  └── views.py<br>│<br>├─ users<br>│  ├─ migrations/<br>|  ├─ templates<br>|  |  └── users/<br>│  ├─ __init__.py<br>│  ├─ admin.py<br>│  ├─ apps.py<br>│  ├─ forms.py<br>│  ├─ models.py<br>│  ├─ tests.py<br>│  ├─ urls.py<br>│  └── views.py</pre><h3>User Authentication</h3><p>For our convenience, we will use the basic Django built-in authentication system.</p><p>In our settings.py we will need to specify a login and logout redirect like so:</p><pre># foodanic/settings.py</pre><pre>...</pre><pre>LOGIN_REDIRECT_URL = &#39;/&#39;<br>LOGOUT_REDIRECT_URL = &#39;/&#39;<br>LOGIN_URL = &#39;login&#39;</pre><p>In our newly created Users app, head to urls to include the Django auth views.</p><pre># users/urls.py<br>from django.urls import path<br>from django.conf.urls.static import static<br>from django.conf import settings<br>from django.contrib.auth import views as auth_views<br>from .views import *</pre><pre>urlpatterns = [<br>    path(&#39;signup/&#39;, signup, name=&#39;signup&#39;),<br>    path(&#39;login/&#39;, auth_views.LoginView.as_view(template_name=&#39;users/login.html&#39;), name=&#39;login&#39;),<br>    path(&#39;logout/&#39;, auth_views.LogoutView.as_view(template_name=&#39;users/logout.html&#39;), name=&#39;logout&#39;),<br>    path(&#39;change-password/&#39;, auth_views.PasswordChangeView.as_view(template_name=&#39;users/change-password.html&#39;), name=&quot;change-password&quot;),<br>    path(&#39;password_change/done/&#39;, auth_views.PasswordChangeDoneView.as_view(template_name=&#39;users/password_reset_done.html&#39;), name=&#39;password_change_done&#39;),<br>    path(&#39;password_reset/&#39;, auth_views.PasswordResetView.as_view(template_name=&#39;users/forgot-password.html&#39;, subject_template_name=&#39;users/password_reset_subject.txt&#39;, html_email_template_name=&#39;users/password_reset_email.html&#39;), name=&#39;password_reset&#39;),<br>    path(&#39;password_reset/done/&#39;, auth_views.PasswordResetDoneView.as_view(template_name=&#39;users/password_reset_done.html&#39;), name=&#39;password_reset_done&#39;),<br>    path(&#39;reset/&lt;uidb64&gt;/&lt;token&gt;/&#39;, auth_views.PasswordResetConfirmView.as_view(template_name=&#39;users/password_reset_confirm.html&#39;), name=&#39;password_reset_confirm&#39;),<br>    path(&#39;reset/done/&#39;, auth_views.PasswordResetCompleteView.as_view(template_name=&#39;users/password_reset_complete.html&#39;), name=&#39;password_reset_complete&#39;),<br>]</pre><pre>if settings.DEBUG:<br>    urlpatterns += static(settings.MEDIA_URL, document_root = settings.MEDIA_ROOT)</pre><p>Now that was a ton of new urls we just added, let’s make sure we have the templates needed. The line below will create all the necessary templates, given you’re in the base directory (foodanic).</p><pre>touch users/templates/users/login.html &amp;&amp; touch users/templates/users/logout.html &amp;&amp; touch users/templates/users/change-password.html &amp;&amp; touch users/templates/users/password_reset_done.html &amp;&amp; touch users/templates/users/forgot-password.html &amp;&amp; touch users/templates/users/password_reset_done.html &amp;&amp; touch users/templates/users/password_reset_confirm.html &amp;&amp; touch users/templates/users/password_reset_complete.html &amp;&amp; touch users/templates/users/password_reset_email.html &amp;&amp; touch users/templates/users/password_reset_subject.txt &amp;&amp; touch users/templates/users/signup.html &amp;&amp; touch users/templates/users/style.html</pre><p>Now we can setup each template to render from the base and display the corresponding form. Credit to <a href="https://codepen.io/Ihor_Sukhorada/pen/LBwRvv">this Codepen</a> for the bootstrap design.</p><p>users/style.html</p><pre>&lt;style&gt;<br>    html,body { <br>        height: 100%; <br>    }<br>    <br>    .global-container{<br>        height:100%;<br>        display: flex;<br>        align-items: center;<br>        justify-content: center;<br>        /* background-color: #f5f5f5; */<br>    }<br>    <br>    form{<br>        padding-top: 10px;<br>        font-size: 14px;<br>        margin-top: 30px;<br>    }<br>    <br>    .card-title{ font-weight:300; }<br>    <br>    .btn{<br>        font-size: 14px;<br>        margin-top:20px;<br>    }<br>    <br>    <br>    .login-form{ <br>        width:330px;<br>        margin:20px;<br>    }<br>    <br>    .sign-up{<br>        text-align:center;<br>        padding:20px 0 0;<br>    }<br>    <br>    .alert{<br>        margin-bottom:-30px;<br>        font-size: 13px;<br>        margin-top:20px;<br>    }<br>&lt;/style&gt;</pre><p>users/login.html</p><pre>&lt;!-- users/login.html --&gt;</pre><pre>{% extends &#39;base.html&#39; %}</pre><pre>{% block content %}<br>{% load crispy_forms_tags %}</pre><pre>&lt;br class=&quot;mt-0 mb-4&quot;&gt;<br>&lt;div class=&quot;container&quot;&gt;<br>    &lt;div class=&quot;global-container&quot;&gt;<br>        &lt;div class=&quot;card login-form&quot;&gt;<br>            &lt;div class=&quot;card-body&quot;&gt;<br>                &lt;h3 class=&quot;card-title text-center&quot;&gt;Log in to Foodanic&lt;/h3&gt;<br>                &lt;div class=&quot;card-text&quot;&gt;<br>                    &lt;form method=&quot;POST&quot;&gt;{% csrf_token %}<br>                        &lt;div class=&quot;form-group&quot;&gt;<br>                            &lt;label for=&quot;username&quot;&gt;Username&lt;/label&gt;<br>                            &lt;input type=&quot;text&quot; name=&quot;username&quot; class=&quot;form-control form-control-sm&quot; id=&quot;username&quot; aria-describedby=&quot;emailHelp&quot;&gt;<br>                        &lt;/div&gt;<br>                        &lt;div class=&quot;form-group&quot;&gt;<br>                            &lt;label for=&quot;password&quot;&gt;Password&lt;/label&gt;<br>                            &lt;a href=&quot;{% url &#39;password_reset&#39; %}&quot; style=&quot;float:right;font-size:12px;text-decoration:none;&quot;&gt;Forgot password?&lt;/a&gt;<br>                            &lt;input type=&quot;password&quot; name=&quot;password&quot; class=&quot;form-control form-control-sm&quot; id=&quot;password&quot;&gt;<br>                        &lt;/div&gt;<br>                        &lt;button type=&quot;submit&quot; class=&quot;btn btn-primary btn-block&quot;&gt;Sign in&lt;/button&gt;<br>                        <br>                        &lt;div class=&quot;sign-up&quot;&gt;<br>                            Don&#39;t have an account? &lt;a href=&quot;{% url &#39;signup&#39; %}&quot; style=&quot;text-decoration:none;&quot;&gt;Create One&lt;/a&gt;<br>                        &lt;/div&gt;<br>                    &lt;/form&gt;<br>                &lt;/div&gt;<br>            &lt;/div&gt;<br>        &lt;/div&gt;<br>    &lt;/div&gt;<br>&lt;/div&gt;</pre><pre>{% include &#39;users/style.html&#39; %}</pre><pre>{% endblock %}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Yxm2p_uNoaIs1lOV.jpeg" /></figure><p>users/logout.html</p><pre>&lt;!-- users/logout.html --&gt;<br>{% extends &#39;base.html&#39; %}</pre><pre>{% block content %}</pre><pre>&lt;div class=&quot;container justify-content-center&quot;&gt;<br>    &lt;h4&gt;You have successfully logged out of Foodanic. &lt;a href=&quot;{% url &#39;login&#39; %}&quot; style=&quot;text-decoration:none;&quot;&gt;Log back in -&gt;&lt;/a&gt;&lt;/h4&gt;<br>&lt;/div&gt;</pre><pre>{% endblock %}</pre><p>users/signup.html</p><pre>&lt;!-- users/signup.html --&gt;</pre><pre>{% extends &#39;base.html&#39; %}</pre><pre>{% block content %}<br>{% load crispy_forms_tags %}</pre><pre>&lt;br class=&quot;mt-0 mb-4&quot;&gt;<br>&lt;div class=&quot;container&quot;&gt;<br>    &lt;div class=&quot;global-container&quot;&gt;<br>        &lt;div class=&quot;card login-form&quot;&gt;<br>            &lt;div class=&quot;card-body&quot;&gt;<br>                &lt;h3 class=&quot;card-title text-center&quot;&gt;Signup for Foodanic&lt;/h3&gt;<br>                &lt;div class=&quot;card-text&quot;&gt;<br>                    &lt;form method=&quot;POST&quot;&gt;{% csrf_token %}<br>                        {{ form|crispy }}<br>                        &lt;button type=&quot;submit&quot; class=&quot;btn btn-primary btn-block&quot;&gt;Sign Up&lt;/button&gt;<br>                        <br>                        &lt;div class=&quot;sign-up&quot;&gt;<br>                            Already have an account? &lt;a href=&quot;{% url &#39;login&#39; %}&quot; style=&quot;text-decoration:none;&quot;&gt;Sign In&lt;/a&gt;<br>                        &lt;/div&gt;<br>                    &lt;/form&gt;<br>                &lt;/div&gt;<br>            &lt;/div&gt;<br>        &lt;/div&gt;<br>    &lt;/div&gt;<br>&lt;/div&gt;</pre><pre>{% include &#39;users/style.html&#39; %}</pre><pre>{% endblock %}</pre><p>users/change-password.html</p><pre>&lt;!-- users/change-password.html --&gt;</pre><pre>{% extends &#39;base.html&#39; %}</pre><pre>{% block content %}<br>{% load crispy_forms_tags %}</pre><pre>&lt;br class=&quot;mt-0 mb-4&quot;&gt;<br>&lt;div class=&quot;container&quot;&gt;<br>    &lt;div class=&quot;global-container&quot;&gt;<br>        &lt;div class=&quot;card login-form&quot;&gt;<br>            &lt;div class=&quot;card-body&quot;&gt;<br>                &lt;h3 class=&quot;card-title text-center&quot;&gt;Log in to Foodanic&lt;/h3&gt;<br>                &lt;div class=&quot;card-text&quot;&gt;<br>                    &lt;form method=&quot;POST&quot;&gt;{% csrf_token %}<br>                            {{ form|crispy }}<br>                        &lt;button type=&quot;submit&quot; class=&quot;btn btn-primary btn-block&quot;&gt;Update Password&lt;/button&gt;<br>                    &lt;/form&gt;<br>                &lt;/div&gt;<br>            &lt;/div&gt;<br>        &lt;/div&gt;<br>    &lt;/div&gt;<br>&lt;/div&gt;<br></pre><pre>{% include &#39;users/style.html&#39; %}</pre><pre>{% endblock %}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1sM3WeTSk_tsrNx9.jpeg" /></figure><p>users/password_reset_done.html</p><pre>&lt;!-- users/password_reset_done.html --&gt;</pre><pre>{% extends &#39;base.html&#39; %}</pre><pre>{% block title %}Email Sent{% endblock %}</pre><pre>{% block content %}<br>&lt;br&gt;&lt;br&gt;<br>&lt;div class=&quot;container&quot;&gt;<br>  &lt;h1&gt;Check your inbox.&lt;/h1&gt;<br>  &lt;p&gt;We&#39;ve emailed you instructions for setting your password. You should receive the email shortly!&lt;/p&gt;<br>  &lt;button class=&quot;btn btn-primary&quot;&gt;&lt;a href=&quot;{% url &#39;home&#39; %}&quot;&gt;Return Home&lt;/button&gt;&lt;/a&gt;<br>&lt;/div&gt;<br>{% endblock %}</pre><p>users/forgot-password.html</p><pre>&lt;!-- users/forgot-password.html --&gt;</pre><pre>{% extends &#39;base.html&#39; %}<br>{% block content %}<br>{% load static %}<br>{% load crispy_forms_tags %}</pre><pre>&lt;body class=&quot;bg-gradient-primary&quot;&gt;</pre><pre>  &lt;div class=&quot;container&quot;&gt;</pre><pre>    &lt;div class=&quot;row justify-content-center&quot;&gt;</pre><pre>      &lt;div class=&quot;col-xl-10 col-lg-12 col-md-9&quot;&gt;</pre><pre>        &lt;div class=&quot;card o-hidden border-0 shadow-lg my-5&quot;&gt;<br>          &lt;div class=&quot;card-body p-0&quot;&gt;<br>            &lt;div class=&quot;row&quot;&gt;<br>              &lt;div class=&quot;col-lg-6 d-none d-lg-block bg-password-image&quot;&gt;<br>                &lt;img src=&quot;https://i.imgur.com/ryKdO1v.jpg&quot; style=&quot;width: 100%; height: 100%;&quot; alt=&quot;&quot;&gt;<br>              &lt;/div&gt;<br>              &lt;div class=&quot;col-lg-6&quot;&gt;<br>                &lt;div class=&quot;p-5&quot;&gt;<br>                  &lt;div class=&quot;text-center&quot;&gt;<br>                    &lt;h1 class=&quot;h4 text-gray-900 mb-2&quot;&gt;Forgot Your Password?&lt;/h1&gt;<br>                    &lt;p class=&quot;mb-4&quot;&gt;We get it, stuff happens. Just enter your email address below and we&#39;ll send you a link to reset your password!&lt;/p&gt;<br>                  &lt;/div&gt;<br>                  &lt;form class=&quot;user&quot; method=&quot;POST&quot;&gt;<br>                    {% csrf_token %}<br>                    &lt;div class=&quot;form-group&quot; style=&quot;border: 2px gray;&quot;&gt;<br>                      &lt;!-- {{ form|crispy }} --&gt;<br>                      &lt;input type=&quot;email&quot; name=&quot;email&quot; class=&quot;form-control form-control-user&quot; id=&quot;exampleInputEmail&quot; aria-describedby=&quot;emailHelp&quot; placeholder=&quot;Enter your email...&quot;&gt;<br>                    &lt;/div&gt;<br>                    &lt;br&gt;<br>                    &lt;button class=&quot;btn btn-primary btn-user btn-block&quot; type=&quot;submit&quot; style=&quot;text-decoration: none;&quot;&gt;<br>                      Reset Password<br>                    &lt;/button&gt;<br>                  &lt;/form&gt;<br>                  <br>                  &lt;hr&gt;<br>                  &lt;div class=&quot;text-center&quot;&gt;<br>                    &lt;a class=&quot;small&quot; href=&quot;{% url &#39;signup&#39; %}&quot; style=&quot;text-decoration: none;&quot;&gt;Create an Account!&lt;/a&gt;<br>                  &lt;/div&gt;<br>                  &lt;div class=&quot;text-center&quot;&gt;<br>                    &lt;a class=&quot;small&quot; href=&quot;{% url &#39;login&#39; %}&quot; style=&quot;text-decoration: none;&quot;&gt;Already have an account? Login!&lt;/a&gt;<br>                  &lt;/div&gt;<br>                &lt;/div&gt;<br>              &lt;/div&gt;<br>            &lt;/div&gt;<br>          &lt;/div&gt;<br>        &lt;/div&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>  &lt;/div&gt;<br>{% endblock %}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HJm7JPv_EKfU-8WM.jpeg" /></figure><p>users/password_reset_subject.txt</p><pre>Foodanic Password Reset</pre><p>users/password_reset_email.html</p><pre>&lt;!-- users/password_reset_email.html --&gt;</pre><pre>{% autoescape off %}</pre><pre>Hi, {{ user.username }}.<br>&lt;br&gt;&lt;br&gt;<br>We received a request for a password reset. If this was you, <br>follow the link below to reset your password. If this wasn&#39;t you, no action is needed.<br>&lt;br&gt;&lt;br&gt;<br>&lt;a href=&quot;{{ protocol }}://{{ domain }}{% url &#39;password_reset_confirm&#39; uidb64=uid token=token %}&quot; target=&quot;_blank&quot;&gt;{{ protocol }}://{{ domain }}{% url &#39;password_reset_confirm&#39; uidb64=uid token=token %}&lt;/a&gt;<br>&lt;br&gt;&lt;br&gt;<br>If clicking the link above doesn&#39;t work, please copy and paste the URL in a new browser<br>window instead.<br>&lt;br&gt;&lt;br&gt;<br>Sincerely,&lt;br&gt;<br>Foodanic<br>{% endautoescape %}</pre><p>users/password_reset_done.html</p><pre>{% extends &#39;base.html&#39; %}</pre><pre>{% block title %}Email Sent{% endblock %}</pre><pre>{% block content %}<br>&lt;br&gt;&lt;br&gt;<br>&lt;div class=&quot;container&quot;&gt;<br>  &lt;h1&gt;Check your inbox.&lt;/h1&gt;<br>  &lt;p&gt;We&#39;ve emailed you instructions for setting your password. You should receive the email shortly!&lt;/p&gt;<br>  &lt;button class=&quot;btn btn-primary&quot;&gt;&lt;a href=&quot;{% url &#39;home&#39; %}&quot;&gt;Return Home&lt;/button&gt;&lt;/a&gt;<br>&lt;/div&gt;<br>{% endblock %}</pre><p>password_reset_confirm.html</p><pre>{% extends &#39;base.html&#39; %}</pre><pre>{% block title %}Enter new password{% endblock %}<br>{% load crispy_forms_tags %}<br>{% block content %}</pre><pre>{% if validlink %}<br>&lt;br&gt;&lt;br&gt;<br>&lt;div class=&quot;container&quot;&gt;<br>  &lt;h1&gt;Set a new password&lt;/h1&gt;<br>  &lt;form method=&quot;POST&quot;&gt;<br>    {% csrf_token %}<br>    {{ form|crispy }}<br>    &lt;br&gt;<br>    &lt;button class=&quot;btn btn-primary&quot; type=&quot;submit&quot;&gt;Change my password&lt;/button&gt;<br>  &lt;/form&gt;<br>&lt;/div&gt;<br>{% else %}</pre><pre>&lt;p&gt;The password reset link was invalid, possibly because it has already been used. Please request a new password reset.&lt;/p&gt;</pre><pre>{% endif %}<br>{% endblock %}</pre><p>users/password_reset_complete.html</p><pre>{% extends &#39;base.html&#39; %}</pre><pre>{% block title %}Password reset complete{% endblock %}</pre><pre>{% block content %}<br>&lt;br&gt;&lt;br&gt;<br>&lt;div class=&quot;container&quot;&gt;<br>    &lt;h1&gt;Password reset complete&lt;/h1&gt;<br>    &lt;p&gt;Your new password has been set. You can now &lt;a href=&quot;{% url &#39;login&#39; %}&quot; style=&quot;text-decoration: none;&quot;&gt;log in&lt;/a&gt;.&lt;/p&gt;<br>&lt;/div&gt;<br>{% endblock %}</pre><p>Now you can give our new user authentication a try, which will take you on a tour of the Django Authentication System. Keep in mind, the Password Reset won’t work because we didn’t set up the email server with Django. I recommend [this tutorial](https://simpleisbetterthancomplex.com/tutorial/2016/09/19/how-to-create-password-reset-view.html) for assisting you with email reset setup.</p><p>If you would like to create an admin account for your site, you can do so with:</p><pre>python manage.py createsuperuser</pre><h3>Main App</h3><p>Here is where the fun part comes, we will build out the CRUD operations of the app.</p><h3>Views</h3><p>The views control the logic of the app, rendering out functions and performing necessary operations on forms, templates, and anything else having to do with your app.</p><p>First, we will write out the functions we will be working on.</p><pre># views.py</pre><pre>from django.shortcuts import render</pre><pre>def home(request):<br>    context = {}<br>    return render(request, &#39;app/index.html&#39;, context)</pre><pre>def detail(request, id):<br>    context = {}<br>    return render(request, &#39;app/detail.html&#39;, context)</pre><pre>def create(request):<br>    context = {}<br>    return render(request, &#39;app/create.html&#39;, context)</pre><pre>def update(request, id):<br>    context = {}<br>    return render(request, &#39;app/update.html&#39;, context)</pre><pre>def delete(request, id):<br>    context = {}<br>    return render(request, &#39;app/delete.html&#39;, context)</pre><p>Next, let’s add them to the urls.py file in app in addition to the media url and root to handle our future images:</p><pre># app/urls.py<br>from django.urls import path<br>from .views import *<br>from django.conf.urls.static import static<br>from django.conf import settings</pre><pre>urlpatterns = [<br>    path(&#39;&#39;, home, name=&#39;home&#39;),<br>    path(&#39;detail/&lt;int:id&gt;/&#39;, detail, name=&#39;detail&#39;),<br>    path(&#39;new/&#39;, create, name=&#39;create&#39;),<br>    path(&#39;update/&lt;int:id&gt;/&#39;, update, name=&#39;update&#39;),<br>    path(&#39;delete/&lt;int:id&gt;/&#39;, delete, name=&#39;delete&#39;),<br>]</pre><pre>if settings.DEBUG:<br>    urlpatterns += static(settings.MEDIA_URL, document_root = settings.MEDIA_ROOT)</pre><p>In order for our urls in app to work properly, we need to add them to our main urls.py file. In addition, also add the media url and root to the main urls as well.</p><pre># foodanic/urls.py<br>from django.contrib import admin<br>from django.urls import path, include<br>from django.conf.urls.static import static<br>from django.conf import settings</pre><pre>urlpatterns = [<br>    path(&#39;admin/&#39;, admin.site.urls),<br>    path(&#39;&#39;, include(&#39;app.urls&#39;)),<br>    path(&#39;u/&#39;, include(&#39;users.urls&#39;)),<br>]</pre><pre>if settings.DEBUG:<br>    urlpatterns += static(settings.MEDIA_URL, document_root = settings.MEDIA_ROOT)</pre><h3>Run migrations and server</h3><p>Now we are ready to start developing our web application. Let’s run migrations to create an initial database and run our app.</p><p>Run migrations with:</p><pre>python manage.py migrate</pre><p>Run server with:</p><pre>python manage.py runserver [OPTIONAL: PORT]</pre><p><em>*Note: The optional port can be used as such: </em><em>python manage.py runserver 8000 </em><em>python manage.py runserver 1234</em></p><h3>Model</h3><p>Now we can set up our model that will store each recipe. In models.py add the following code:</p><pre># models.py<br>from django.db import models<br>from datetime import datetime, timedelta<br>from markdownx.models import MarkdownxField<br>from django.contrib.auth.models import User</pre><pre>class Recipe(models.Model):<br>    name = models.CharField(max_length=255)<br>    description = models.TextField()<br>    prep = models.CharField(max_length=255)<br>    cook = models.CharField(max_length=255)<br>    servings = models.IntegerField(default=1, null=True, blank=True)<br>    image = models.ImageField(upload_to=&#39;media/&#39;)<br>    ingredients = MarkdownxField()<br>    directions = MarkdownxField()<br>    notes = models.TextField(null=True, blank=True)<br>    author = models.ForeignKey(User, on_delete=models.CASCADE)</pre><pre>    def __str__(self):<br>        return self.name</pre><pre>    @property<br>    def formatted_ingredients(self):<br>        return markdownify(self.ingredients)</pre><pre>    @property<br>    def formatted_directions(self):<br>        return markdownify(self.directions)</pre><p>A few things to note here: we have 9 fields that will hold the information for the Recipe model. We will be using Django MarkdownX <a href="https://github.com/neutronX/django-markdownx">(Github Link)</a> for two of the fields for a nicer look. The @property creates a property tag we can use in our templates to render out Markdown fields.</p><p>To install Django Markdown, run:</p><pre>pip install django-markdownx</pre><p>Add it to settings.py:</p><pre># settings.py</pre><pre>INSTALLED_APPS = [<br>   &#39;markdownx&#39;,<br>   ...<br>]</pre><p>Add it to requirements with:</p><pre>pip freeze &gt; requirements.txt</pre><p>Add it to main urls.py:</p><pre># foodanic/urls.py</pre><pre>urlpatterns = [<br>    path(&#39;markdownx/&#39;, include(&#39;markdownx.urls&#39;)),<br>]</pre><p>Now that we have our model set up, we can go ahead and run migrations. Note: You must run migrations with every change you make to models so the database gets updated.</p><pre>python manage.py makemigrations &amp;&amp; python manage.py migrate</pre><p>If everything went well, you should see an output similar to this and a brand new migration in your app migrations/ folder.</p><pre>(env) ➜  foodanic git:(master) ✗ python manage.py makemigrations &amp;&amp; python manage.py migrate<br>Migrations for &#39;app&#39;:<br>  app/migrations/0001_initial.py<br>    - Create model Recipe<br>Operations to perform:<br>  Apply all migrations: admin, app, auth, contenttypes, sessions<br>Running migrations:<br>  Applying app.0001_initial... OK<br>(env) ➜  foodanic git:(master) ✗</pre><p>In order for our model to successfully be displayed in the Django Admin, we need to register it to the admin.py file like so:</p><pre># app/admin.py<br>from django.contrib import admin<br>from .models import *</pre><pre>admin.site.register(Recipe)</pre><h3>Main Form</h3><p>In order to pass data into our database swiftly, we will use a django ModelForm based on our model.</p><p>Make the following changes in your forms file:</p><pre># app/forms.py<br>from django import forms<br>from .models import *<br>from durationwidget.widgets import TimeDurationWidget</pre><pre>class RecipeForm(forms.ModelForm):<br>    prep = forms.DurationField(widget=TimeDurationWidget(show_days=False, show_hours=True, show_minutes=True, show_seconds=False), required=False)<br>    cook = forms.DurationField(widget=TimeDurationWidget(show_days=False, show_hours=True, show_minutes=True, show_seconds=False), required=False)<br>    <br>    class Meta:<br>        model = Recipe<br>        fields = &#39;__all__&#39;<br>        exclude = (&#39;author&#39;,)</pre><p>With this form, we will be able to render out all the fields in the Recipe model. Additionally, if you wanted to only include certain fields you would list them in an array as such: fields = [&#39;name&#39;, &#39;image&#39;,] or if you wanted to exclude certain fields, you would list them as such: exclude = (&#39;name&#39;, &#39;image&#39;,).</p><p>You might have noticed we added a new library to help us render the duration field for prep and cook time. Also, let’s install another module we will use later to help us with the form, <a href="https://django-crispy-forms.readthedocs.io/en/latest/">Django Crispy Forms</a>.</p><p>Install it with pip:</p><pre>pip install django-durationwidget<br>pip install django-crispy-forms</pre><p>Add it to settings:</p><pre># settings.py<br>INSTALLED_APPS = [<br>    &#39;durationwidget&#39;,<br>    &#39;crispy_forms&#39;,<br>]</pre><pre>TEMPLATES = [<br>    &#39;APP_DIRS&#39;: True,        # set to True<br>]</pre><pre># on the bottom of settings.py<br>CRISPY_TEMPLATE_PACK = &#39;bootstrap4&#39;</pre><p>And let’s freeze the requirements to save the dependency:</p><pre>pip freeze &gt; requirements.txt</pre><h3>CRUD</h3><p>Now we are ready to start writing the logic of our views.</p><p>Let’s begin with the <strong>C </strong>in <strong>CRUD </strong>which stands for (Create, Read, Update, Delete)</p><h3>Create</h3><p>In our views, let’s import the forms, the models and render out the form for a GET and POST request. The GET request will render when a user goes on the page to create a new recipe whereas the POST will handle the form logic once submitted.</p><pre># app/views.py<br>from django.shortcuts import render, redirect, get_object_or_404<br>from django.contrib.auth.decorators import login_required<br>from django.core.files.storage import FileSystemStorage<br>from datetime import datetime, timedelta<br>from .models import *<br>from .forms import *</pre><pre>@login_required<br>def create(request):<br>    context = {}<br>    if request.method == &#39;GET&#39;:<br>        form = RecipeForm()<br>        context[&#39;form&#39;] = RecipeForm()<br>        return render(request, &#39;app/create.html&#39;, context)<br>    elif request.method == &#39;POST&#39; and request.FILES != None:<br>        form = RecipeForm(request.POST, request.FILES)<br>        if form.is_valid():<br>            new = Recipe()<br>            user = request.user<br>            new.author = user<br>            new.name = form[&#39;name&#39;].value()<br>            new.description = form[&#39;description&#39;].value()<br>            new.prep = form[&#39;prep&#39;].value()<br>            new.cook = form[&#39;cook&#39;].value()<br>            new.servings = form[&#39;servings&#39;].value()<br>            new.ingredients = form[&#39;ingredients&#39;].value()<br>            new.directions = form[&#39;directions&#39;].value()<br>            new.notes = form[&#39;notes&#39;].value()<br>            theimg = request.FILES[&#39;image&#39;]<br>            fs = FileSystemStorage()<br>            filename = fs.save(theimg.name, theimg)<br>            file_url = fs.url(https://medium.com/filename)<br>            new.image = filename<br>            new.save()<br>            return redirect(&#39;home&#39;)<br>        else:<br>            form = RecipeForm()<br>            context[&#39;form&#39;] = RecipeForm()<br>            return render(request, &#39;app/create.html&#39;, context)<br>    return render(request, &#39;app/create.html&#39;, context)</pre><p>Woah, that’s a whole lotta code — let’s break it down so we understand what it’s doing.</p><p>The if statement handles the logic of which template to render if GET and where to redirect the user after the submission, POST. The request.FILES in the form is for our image field. Essentially, if the form submitted passes our parameters, we create a new instance of the Recipe model and save the contents of the form to the model values respectively.</p><p>Now we have to render out a template for the form. To do that, we will need to create a base.html file in our base templates. I&#39;ll add the most up-to-date version of Bootstrap which is 5 - so if you&#39;re reading this tutorial later on, be sure to update the corresponding CDN for Bootstrap, found at <a href="https://getbootstrap.com/">getbootstrap.com</a>.</p><p>foodanic/templates/base.html</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot;&gt;<br>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;<br>    &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;ie=edge&quot;&gt;<br>    &lt;title&gt;Foodanic&lt;/title&gt;<br>    &lt;link href=&quot;https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css&quot; rel=&quot;stylesheet&quot; integrity=&quot;sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl&quot; crossorigin=&quot;anonymous&quot;&gt;<br>    &lt;link rel=&quot;shortcut icon&quot; href=&quot;https://media.istockphoto.com/vectors/hand-opening-silver-cloche-vector-id1135322593?k=6&amp;m=1135322593&amp;s=612x612&amp;w=0&amp;h=QhIjVZdKyGzfQ6aGojvSFgXpLZpEG7RsueYSLngbdLA=&quot; type=&quot;image/x-icon&quot;&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>    {% block content %}</pre><pre>    {% endblock %}<br>    <br>    &lt;script src=&quot;https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js&quot; integrity=&quot;sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p>Now we have our base.html setup, and we can render other templates without the unnecessary content. I Bootstrapped the create.html page to a passable format but feel free to change up the design however you please.</p><p>app/create.html</p><pre>{% extends &#39;base.html&#39; %}<br>{% block content %}<br>{% load crispy_forms_tags %}<br></pre><pre>&lt;br class=&quot;mt-0 mb-4&quot;&gt;<br>&lt;div class=&quot;container&quot;&gt;<br>    &lt;h4&gt;New Recipe&lt;/h4&gt;<br>    &lt;p&gt;&lt;i&gt;Note: The Ingredients and Directions fields are Markdown Supported. Learn more about markdown &lt;a href=&quot;https://www.markdownguide.org/cheat-sheet/&quot; target=&quot;_blank&quot; style=&quot;text-decoration: none;&quot;&gt;here&lt;/a&gt;.&lt;/i&gt;&lt;/p&gt;<br>    &lt;br&gt;<br>        &lt;form method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;&gt;<br>            {% csrf_token %}<br>            &lt;div class=&quot;row&quot;&gt;<br>                &lt;div class=&quot;col-6&quot;&gt;<br>                    &lt;div class=&quot;col&quot;&gt;<br>                        {{ form.name|as_crispy_field }}<br>                        {{ form.image|as_crispy_field }}<br>                    &lt;/div&gt;<br>                &lt;/div&gt;<br>                &lt;div class=&quot;col-6&quot;&gt;<br>                    {{ form.description|as_crispy_field }}<br>                &lt;/div&gt;<br>            &lt;/div&gt;<br>            &lt;br&gt;<br>            &lt;div class=&quot;row justify-content-center&quot;&gt;<br>                &lt;div class=&quot;col-2&quot;&gt;<br>                    {{ form.prep|as_crispy_field }}<br>                &lt;/div&gt;<br>                &lt;div class=&quot;col-2&quot;&gt;<br>                    {{ form.cook|as_crispy_field }}<br>                &lt;/div&gt;<br>                &lt;div class=&quot;col-2&quot;&gt;<br>                    {{ form.servings|as_crispy_field }}<br>                &lt;/div&gt;<br>            &lt;/div&gt;<br>            &lt;br&gt;<br>            &lt;div class=&quot;row&quot;&gt;<br>                &lt;div class=&quot;col-4&quot;&gt;<br>                    {{ form.ingredients|as_crispy_field }}<br>                &lt;/div&gt;<br>                &lt;div class=&quot;col-4&quot;&gt;<br>                    {{ form.directions|as_crispy_field }}<br>                &lt;/div&gt;<br>                &lt;div class=&quot;col-4&quot;&gt;<br>                    {{ form.notes|as_crispy_field }}<br>                &lt;/div&gt;<br>            &lt;/div&gt;<br>            &lt;div class=&quot;mt-4 mb-4 d-flex justify-content-center&quot;&gt;<br>                &lt;button type=&quot;submit&quot; class=&quot;btn btn-success&quot;&gt;Post Recipe&lt;/button&gt;<br>            &lt;/div&gt;<br>        &lt;/form&gt;<br>   <br>    {{ form.media }}<br>&lt;/div&gt;</pre><pre>{% endblock %}</pre><p>In the beginning, you can see we render the info in block content tags based on the base.html file we created. We load crispy in with the tag and set each field as a crispy field. The {{ form.media }} tag renders out the content for the MarkdownX fields. Alternatively, you can render out the entire form as crispy like this: {{ form|crispy }}.</p><p>The new route should look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IovqjOsNpTPoTdSB.jpeg" /></figure><h3>Read</h3><p>The read portion of CRUD has to do with being able to view each individual object in our database. First, we’ll do single recipes, then we’ll pull the entire set for our index page.</p><p>app/views.py</p><pre>from django.shortcuts import render, redirect, get_object_or_404<br>from django.contrib.auth.decorators import login_required<br>from django.core.files.storage import FileSystemStorage<br>from datetime import datetime, timedelta<br>from markdownx.utils import markdownify<br>from .models import *<br>from .forms import *</pre><pre>def detail(request, id):<br>    recipe = get_object_or_404(Recipe, id=id)<br>    recipe.ingredients = markdownify(recipe.ingredients)<br>    recipe.directions = markdownify(recipe.directions)</pre><pre>    context = {<br>        &#39;recipe&#39;: recipe,<br>    }<br>    return render(request, &#39;app/detail.html&#39;, context)</pre><p>The template below is credited to user <a href="https://codepen.io/ARIELOZAM/pen/JjRoxeN">ARIELOZAM</a> on Codepen.</p><p>app/detail.html</p><pre>{% extends &#39;base.html&#39; %}<br>{% block content %}<br>{% load crispy_forms_tags %}</pre><pre>&lt;br class=&quot;mt-0 mb-4&quot;&gt;<br>&lt;div class=&quot;container&quot;&gt;<br>    &lt;div class=&quot;bg-codeblocks&quot;&gt;<br>        &lt;div class=&quot;main-box-codeblocks&quot;&gt;<br>            &lt;div class=&quot;container&quot;&gt;<br>                &lt;div class=&quot;row&quot;&gt;<br>                    &lt;div class=&quot;col-md-12&quot;&gt;<br>                        &lt;a href=&quot;{% url &#39;home&#39; %}&quot;&gt;&lt;button class=&quot;btn btn-info mb-4&quot;&gt;Back Home&lt;/button&gt;&lt;/a&gt;<br>                    &lt;/div&gt;<br>                &lt;/div&gt;<br>                &lt;div class=&quot;row&quot;&gt;<br>                    &lt;div class=&quot;col-md-6&quot;&gt;<br>                        &lt;div class=&quot;box-image-codeblocks&quot;&gt;<br>                            &lt;div class=&quot;swiper-container gallery-top&quot;&gt;<br>                                &lt;div class=&quot;swiper-wrapper&quot;&gt;<br>                                    &lt;div class=&quot;swiper-slide&quot;&gt;<br>                                        &lt;div class=&quot;product-image&quot;&gt;<br>                                            &lt;img src=&quot;{{recipe.image.url}}&quot; alt=&quot;{{recipe.name}}&quot; class=&quot;img-fluid&quot; style=&quot;width: 650px; height: 100%;&quot;&gt;<br>                                        &lt;/div&gt;<br>                                    &lt;/div&gt;<br>                                &lt;/div&gt;<br>                            &lt;/div&gt;<br>                        &lt;/div&gt;<br>                    &lt;/div&gt;<br>                    &lt;div class=&quot;col-md-6&quot;&gt;<br>                        &lt;h2 class=&quot;text-bold text-strong&quot;&gt;{{ recipe.name|capfirst }} Recipe  {% if user.is_authenticated and request.user == recipe.author %}   &lt;a href=&quot;{% url &#39;update&#39; recipe.id %}&quot;&gt;&lt;i class=&quot;fas fa-edit&quot;&gt;&lt;/i&gt;&lt;/a&gt; &lt;span data-bs-toggle=&quot;modal&quot; data-bs-target=&quot;#delete&quot;&gt;&lt;i class=&quot;fas fa-trash&quot;&gt;&lt;/i&gt;&lt;/span&gt; {% endif %}&lt;/h2&gt;<br>                        &lt;span class=&quot;seller-name-codeblocks&quot;&gt;<br>                            &lt;h5&gt;by &lt;a href=&quot;#&quot; style=&quot;text-decoration: none;&quot;&gt;{{recipe.author}}&lt;/a&gt;&lt;/h5&gt;<br>                        &lt;/span&gt;<br>                        &lt;br&gt;<br>                        &lt;span class=&quot;description-codeblocks&quot;&gt;<br>                            &lt;p&gt;<br>                                &lt;strong&gt;Description:&lt;/strong&gt; &lt;br&gt;<br>                                &lt;span class=&quot;text-muted&quot;&gt;<br>                                    &lt;p style=&quot;width: 450px;overflow:scroll;&quot;&gt;{{recipe.description}}&lt;/p&gt;<br>                                &lt;/span&gt;<br>                            &lt;/p&gt;<br>                        &lt;/span&gt;<br>                        &lt;br&gt;<br>                        &lt;span class=&quot;extras-codeblocks &quot;&gt;<br>                            &lt;ul class=&quot;nav nav-tabs my-2&quot; id=&quot;myTab&quot; role=&quot;tablist&quot;&gt;<br>                                &lt;li class=&quot;nav-item&quot; role=&quot;presentation&quot;&gt;<br>                                    &lt;a class=&quot;nav-link active&quot; id=&quot;home-tab&quot; data-toggle=&quot;tab&quot; href=&quot;#home&quot; role=&quot;tab&quot; aria-controls=&quot;home&quot; aria-selected=&quot;true&quot;&gt;Quick Info&lt;/a&gt;<br>                                &lt;/li&gt;<br>                                &lt;li class=&quot;nav-item&quot; role=&quot;presentation&quot;&gt;<br>                                    &lt;a class=&quot;nav-link&quot; id=&quot;ingredients-tab&quot; data-toggle=&quot;tab&quot; href=&quot;#ingredients&quot; role=&quot;tab&quot; aria-controls=&quot;ingredients&quot; aria-selected=&quot;false&quot;&gt;Ingredients&lt;/a&gt;<br>                                &lt;/li&gt;<br>                                &lt;li class=&quot;nav-item&quot; role=&quot;presentation&quot;&gt;<br>                                    &lt;a class=&quot;nav-link&quot; id=&quot;directions-tab&quot; data-toggle=&quot;tab&quot; href=&quot;#directions&quot; role=&quot;tab&quot; aria-controls=&quot;directions&quot; aria-selected=&quot;false&quot;&gt;Directions&lt;/a&gt;<br>                                &lt;/li&gt;<br>                            &lt;/ul&gt;<br>                            &lt;div class=&quot;tab-content&quot; id=&quot;myTabContent&quot;&gt;<br>                                &lt;div class=&quot;tab-pane fade show active&quot; id=&quot;home&quot; role=&quot;tabpanel&quot; aria-labelledby=&quot;home-tab&quot;&gt;<br>                                    &lt;br&gt;<br>                                    &lt;table style=&quot;width:250px;&quot;&gt;<br>                                        &lt;tr&gt;<br>                                            &lt;th&gt;Servings:&lt;/th&gt;<br>                                            &lt;td&gt;{{ recipe.servings }}&lt;/td&gt;<br>                                        &lt;/tr&gt;<br>                                        &lt;tr&gt;<br>                                            &lt;th&gt;Prep:&lt;/th&gt;<br>                                            &lt;td&gt;{{ recipe.prep }}&lt;/td&gt;<br>                                        &lt;/tr&gt;<br>                                        &lt;tr&gt;<br>                                            &lt;th&gt;Cook:&lt;/th&gt;<br>                                            &lt;td&gt;{{ recipe.cook }}&lt;/td&gt;<br>                                        &lt;/tr&gt;<br>                                    &lt;/table&gt;<br>                                &lt;/div&gt;<br>                                &lt;div class=&quot;tab-pane fade&quot; id=&quot;ingredients&quot; role=&quot;tabpanel&quot; aria-labelledby=&quot;ingredients-tab&quot;&gt;<br>                                    {{ recipe.ingredients|safe }}<br>                                &lt;/div&gt;<br>                                &lt;div class=&quot;tab-pane fade&quot; id=&quot;directions&quot; role=&quot;tabpanel&quot; aria-labelledby=&quot;directions-tab&quot;&gt;<br>                                    {{ recipe.directions|safe }}<br>                                &lt;/div&gt;<br>                            &lt;/div&gt;<br>                        &lt;/span&gt;<br>                    &lt;/div&gt;<br>                &lt;/div&gt;<br>            &lt;/div&gt;<br>        &lt;/div&gt;<br>    &lt;/div&gt;<br>&lt;/div&gt;<br>      <br>&lt;!-- Modal --&gt;<br>&lt;div class=&quot;modal fade&quot; id=&quot;delete&quot; data-bs-backdrop=&quot;static&quot; data-bs-keyboard=&quot;false&quot; tabindex=&quot;-1&quot; aria-labelledby=&quot;deleteLabel&quot; aria-hidden=&quot;true&quot;&gt;<br>    &lt;div class=&quot;modal-dialog&quot;&gt;<br>        &lt;div class=&quot;modal-content&quot;&gt;<br>        &lt;div class=&quot;modal-header&quot;&gt;<br>            &lt;h5 class=&quot;modal-title&quot; id=&quot;deleteLabel&quot;&gt;Are you 100% sure?&lt;/h5&gt;<br>            &lt;button type=&quot;button&quot; class=&quot;btn-close&quot; data-bs-dismiss=&quot;modal&quot; aria-label=&quot;Close&quot;&gt;&lt;/button&gt;<br>        &lt;/div&gt;<br>        &lt;div class=&quot;modal-body&quot;&gt;<br>            Are you absolutely sure you want to delete the {{recipe.name|capfirst}} Recipe? The data will be erased from the database and will not be retrievable.<br>        &lt;/div&gt;<br>        &lt;div class=&quot;modal-footer&quot;&gt;<br>            &lt;button type=&quot;button&quot; class=&quot;btn btn-secondary&quot; data-bs-dismiss=&quot;modal&quot;&gt;Nevermind&lt;/button&gt;<br>            &lt;a href=&quot;{% url &#39;delete&#39; recipe.id %}&quot;&gt;&lt;button type=&quot;button&quot; class=&quot;btn btn-primary&quot;&gt;OK, Proceed&lt;/button&gt;&lt;/a&gt;<br>        &lt;/div&gt;<br>        &lt;/div&gt;<br>    &lt;/div&gt;<br>&lt;/div&gt;</pre><pre>&lt;style&gt;<br>.bg-codeblocks {<br>    margin-top: 4%;<br>    position: absolute;<br>    background: #8E2DE2;<br>    background: -webkit-linear-gradient(to right, #4A00E0, #8E2DE2);<br>    background: linear-gradient(to right, #4A00E0, #8E2DE2);<br>    height: auto;<br>}</pre><pre>.main-box-codeblocks	{<br>	background-color: #FAFAFA;<br>	border-radius: 20px;<br>	padding: 5em 2em;<br>	width:90%;<br>	height: auto;<br>	position: relative;<br>	display: block;<br>	box-shadow: 0 0px 20px 2px rgba(0,0,0,0.5);<br>	margin: 3em auto;<br>	<br>}<br>&lt;/style&gt;</pre><pre>&lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js&quot;&gt;&lt;/script&gt;<br>&lt;script src=&quot;https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.3/js/bootstrap.min.js&quot;&gt;&lt;/script&gt;<br>&lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css&quot;&gt;</pre><pre>{% endblock %}</pre><p>The new template should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PwnMaGQyygYVywv9.jpeg" /></figure><p>Now it’s time to get all of our Recipes to display on our homepage.</p><p>app/index.html</p><pre>{% extends &#39;base.html&#39; %}<br>{% block content %}<br>{% load crispy_forms_tags %}</pre><pre>    &lt;nav class=&quot;navbar navbar-expand-lg navbar-light bg-light&quot;&gt;<br>        &lt;div class=&quot;container-fluid&quot;&gt;<br>          &lt;a class=&quot;navbar-brand&quot; href=&quot;{% url &#39;home&#39; %}&quot;&gt;Foodanic&lt;/a&gt;<br>          &lt;button class=&quot;navbar-toggler&quot; type=&quot;button&quot; data-bs-toggle=&quot;collapse&quot; data-bs-target=&quot;#navbarSupportedContent&quot; aria-controls=&quot;navbarSupportedContent&quot; aria-expanded=&quot;false&quot; aria-label=&quot;Toggle navigation&quot;&gt;<br>            &lt;span class=&quot;navbar-toggler-icon&quot;&gt;&lt;/span&gt;<br>          &lt;/button&gt;<br>          &lt;div class=&quot;collapse navbar-collapse&quot; id=&quot;navbarSupportedContent&quot;&gt;<br>            &lt;ul class=&quot;navbar-nav me-auto mb-2 mb-lg-0&quot;&gt;<br>              &lt;li class=&quot;nav-item&quot;&gt;<br>                &lt;a class=&quot;nav-link active&quot; aria-current=&quot;page&quot; href=&quot;{% url &#39;home&#39; %}&quot;&gt;&lt;button class=&quot;btn btn-warning&quot; style=&quot;color: white;&quot;&gt;All Recipes&lt;/button&gt;&lt;/a&gt;<br>              &lt;/li&gt;<br>              &lt;li class=&quot;nav-item&quot;&gt;<br>                &lt;a class=&quot;nav-link active&quot; href=&quot;{% url &#39;create&#39; %}&quot;&gt;&lt;button class=&quot;btn btn-info&quot; style=&quot;color: white;&quot;&gt;New Recipe&lt;/button&gt;&lt;/a&gt;<br>              &lt;/li&gt;<br>            &lt;/ul&gt;<br>            {% if not request.user.is_authenticated %}<br>                &lt;a class=&quot;nav-link active&quot; aria-current=&quot;page&quot; href=&quot;{% url &#39;login&#39; %}&quot;&gt;&lt;button class=&quot;btn btn-dark&quot; style=&quot;color: white;&quot;&gt;Login&lt;/button&gt;&lt;/a&gt;<br>            {% else %}<br>                &lt;a class=&quot;nav-link active&quot; aria-current=&quot;page&quot; href=&quot;{% url &#39;logout&#39; %}&quot;&gt;&lt;button class=&quot;btn btn-dark&quot; style=&quot;color: white;&quot;&gt;Logout&lt;/button&gt;&lt;/a&gt;<br>            {% endif %}<br>          &lt;/div&gt;<br>        &lt;/div&gt;<br>      &lt;/nav&gt;</pre><pre>  &lt;div class=&quot;container&quot;&gt;<br>    &lt;header class=&quot;jumbotron my-4&quot;&gt;<br>      &lt;h1 class=&quot;display-3&quot;&gt;A Warm Welcome!&lt;/h1&gt;<br>      &lt;p class=&quot;lead&quot;&gt;Browse through our collection of various recipes.&lt;/p&gt;<br>      &lt;a href=&quot;{% url &#39;create&#39; %}&quot;&gt;&lt;button class=&quot;btn btn-info btn-lg&quot; style=&quot;color: white;&quot;&gt;Post Your Recipe&lt;/button&gt;&lt;/a&gt;<br>    &lt;/header&gt;</pre><pre>    &lt;br&gt;<br>    &lt;div class=&quot;row text-center&quot;&gt;<br>    {% for recipe in recipes %}<br>      &lt;div class=&quot;col-lg-4 col-md-6 mb-4&quot;&gt;<br>        &lt;div class=&quot;card h-100 w-75&quot;&gt;<br>            &lt;a href=&quot;{% url &#39;detail&#39; recipe.id %}&quot;&gt;&lt;img class=&quot;card-img-top&quot; src=&quot;{{recipe.image.url}}&quot; alt=&quot;{{recipe.name}}&quot;&gt;&lt;/a&gt;<br>          &lt;div class=&quot;card-body&quot;&gt;<br>            &lt;h4 class=&quot;card-title&quot;&gt;&lt;a href=&quot;{% url &#39;detail&#39; recipe.id %}&quot; style=&quot;text-decoration: none;&quot;&gt;{{recipe.name}} Recipe&lt;/a&gt;&lt;/h4&gt;<br>            &lt;p class=&quot;card-text&quot;&gt;{{recipe.description|truncatechars:65}}&lt;/p&gt;<br>            &lt;p&gt;&lt;b&gt;Prep Time: &lt;/b&gt;{{recipe.prep}} &lt;br&gt;<br>               &lt;b&gt;Cook Time: &lt;/b&gt;{{recipe.cook}}<br>            &lt;/p&gt;<br>          &lt;/div&gt;<br>          &lt;div class=&quot;card-footer&quot;&gt;<br>            &lt;a href=&quot;{% url &#39;detail&#39; recipe.id %}&quot; class=&quot;btn btn-primary&quot;&gt;View&lt;/a&gt;<br>          &lt;/div&gt;<br>        &lt;/div&gt;<br>      &lt;/div&gt;<br>    {% endfor %}<br>    &lt;/div&gt;<br>  &lt;/div&gt;</pre><pre>  &lt;br&gt;&lt;br&gt;&lt;br&gt;<br>  &lt;footer class=&quot;py-5 bg-dark&quot;&gt;<br>    &lt;div class=&quot;container&quot;&gt;<br>      &lt;p class=&quot;m-0 text-center text-white&quot;&gt;Copyright &amp;copy; Foodanic 2021&lt;/p&gt;<br>    &lt;/div&gt;<br>  &lt;/footer&gt;<br>{% endblock %}</pre><p>With a few sample Recipes, here is how the Home Page comes out to:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bp3rnca0jDAM_ucB.jpeg" /></figure><h3>Update</h3><p>The update view will grab an instance of the object we want to update and save the new information.</p><p>app/views.py</p><pre>@login_required<br>def update(request, id):<br>    recipe = get_object_or_404(Recipe, id=id)<br>    context = {<br>        &#39;recipe&#39;: recipe<br>    }<br>    if request.method == &#39;GET&#39;:<br>        form = RecipeForm(instance=recipe)<br>        context[&#39;form&#39;] = form<br>        return render(request, &#39;app/update.html&#39;, context)<br>    elif request.method == &#39;POST&#39; and request.FILES != None:<br>        form = RecipeForm(request.POST, request.FILES, instance=recipe)<br>        if form.is_valid():<br>            form.save()<br>            return redirect(&#39;detail&#39;, recipe.id)<br>        else:<br>            form = RecipeForm(instance=recipe)<br>            context[&#39;form&#39;] = form<br>            return render(request, &#39;app/update.html&#39;, context)<br>    return render(request, &#39;app/update.html&#39;, context)</pre><p>A short and simple route rendering a replica of the create view except we’re saving the form generically.</p><p>app/update.html</p><pre>{% extends &#39;base.html&#39; %}<br>{% block content %}<br>{% load crispy_forms_tags %}</pre><pre>&lt;br class=&quot;mt-0 mb-4&quot;&gt;<br>&lt;div class=&quot;container&quot;&gt;<br>    &lt;h4&gt;Update Recipe&lt;/h4&gt;<br>    &lt;p&gt;&lt;i&gt;Note: The Ingredients and Directions fields are Markdown Supported. Learn more about markdown &lt;a href=&quot;https://www.markdownguide.org/cheat-sheet/&quot; target=&quot;_blank&quot; style=&quot;text-decoration: none;&quot;&gt;here&lt;/a&gt;.&lt;/i&gt;&lt;/p&gt;<br>    &lt;br&gt;<br>        &lt;form method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;&gt;<br>            {% csrf_token %}<br>            &lt;div class=&quot;row&quot;&gt;<br>                &lt;div class=&quot;col-6&quot;&gt;<br>                    &lt;div class=&quot;col&quot;&gt;<br>                        {{ form.name|as_crispy_field }}<br>                        {{ form.image|as_crispy_field }}<br>                    &lt;/div&gt;<br>                &lt;/div&gt;<br>                &lt;div class=&quot;col-6&quot;&gt;<br>                    {{ form.description|as_crispy_field }}<br>                &lt;/div&gt;<br>            &lt;/div&gt;<br>            &lt;br&gt;<br>            &lt;div class=&quot;row justify-content-center&quot;&gt;<br>                &lt;div class=&quot;col-2&quot;&gt;<br>                    {{ form.prep|as_crispy_field }}<br>                &lt;/div&gt;<br>                &lt;div class=&quot;col-2&quot;&gt;<br>                    {{ form.cook|as_crispy_field }}<br>                &lt;/div&gt;<br>                &lt;div class=&quot;col-2&quot;&gt;<br>                    {{ form.servings|as_crispy_field }}<br>                &lt;/div&gt;<br>            &lt;/div&gt;<br>            &lt;br&gt;<br>            &lt;div class=&quot;row&quot;&gt;<br>                &lt;div class=&quot;col-4&quot;&gt;<br>                    {{ form.ingredients|as_crispy_field }}<br>                &lt;/div&gt;<br>                &lt;div class=&quot;col-4&quot;&gt;<br>                    {{ form.directions|as_crispy_field }}<br>                &lt;/div&gt;<br>                &lt;div class=&quot;col-4&quot;&gt;<br>                    {{ form.notes|as_crispy_field }}<br>                &lt;/div&gt;<br>            &lt;/div&gt;<br>            &lt;div class=&quot;mt-4 mb-4 d-flex justify-content-center&quot;&gt;<br>                &lt;button type=&quot;submit&quot; class=&quot;btn btn-success&quot;&gt;Save Recipe&lt;/button&gt;<br>            &lt;/div&gt;<br>        &lt;/form&gt;<br>    {{ form.media }}<br>&lt;/div&gt;</pre><pre>{% endblock %}</pre><p>Go ahead and give it a try, your form should be showing you the data of the object and saving it properly to the database.</p><h3>Delete</h3><p>As much as it hurts deleting our database objects, sometimes it’s what the user or we, want to do.</p><p>app/views.py</p><pre>@login_required<br>def delete(request, id):<br>    recipe = get_object_or_404(Recipe, id=id)<br>    if not request.user == recipe.author:<br>        return redirect(&#39;detail&#39;, recipe.id)<br>    else:<br>        name = recipe.name<br>        recipe.delete()<br>        context = {<br>            &#39;name&#39;: name<br>        }<br>        return render(request, &#39;app/delete.html&#39;, context)</pre><p>app/delete.html</p><pre>{% extends &#39;base.html&#39; %}<br>{% block content %}<br>{% load crispy_forms_tags %}</pre><pre>&lt;br class=&quot;mt-0 mb-4&quot;&gt;<br>&lt;div class=&quot;container&quot;&gt;<br>    &lt;h4&gt;You have successfully deleted the {{name|capfirst}} Recipe&lt;/h4&gt;<br>    &lt;br&gt;&lt;br&gt;<br>    &lt;div class=&quot;row&quot;&gt;<br>        &lt;div class=&quot;col&quot;&gt;&lt;a href=&quot;{% url &#39;home&#39; %}&quot;&gt;&lt;button class=&quot;btn btn-primary&quot;&gt;Back Home&lt;/button&gt;&lt;/a&gt;&lt;/div&gt;<br>        &lt;div class=&quot;col&quot;&gt;&lt;a href=&quot;{% url &#39;create&#39; %}&quot;&gt;&lt;button class=&quot;btn btn-success&quot;&gt;New Recipe&lt;/button&gt;&lt;/a&gt;&lt;/div&gt;<br>    &lt;/div&gt;<br>&lt;/div&gt;<br>{% endblock %}</pre><h3>Part 3 🚗</h3><p>We are now ready for our live deployment to Heroku. At this point, please head over to <a href="https://github.com/">Github</a>, create and push your code to a new repository so we can host it on Heroku. Also, if you don’t already have a Heroku account, head to <a href="https://www.heroku.com/">Heroku Home</a> to create one.</p><p>Additionally, Heroku needs gunicorn to run so we’ll install it with pip.</p><pre>pip install gunicorn<br>pip freeze &gt; requirements.txt</pre><p>Next we need a Procfile so Heroku knows to run our app with gunicorn.</p><pre>web: gunicorn foodanic.wsgi --log-file -</pre><p>Make sure you are logged into Heroku in your terminal with:</p><pre>heroku login</pre><p>Create a new Heroku app with:</p><pre>heroku create<br># or<br>heroku create [app-name]</pre><p>After you git and commit, run</p><pre>git push heroku HEAD:master</pre><p>When you get a success message saying your app (with link) was deployed to Heroku, we have to ensure that our app accepts that reference.</p><p>foodanic/settings.py</p><pre>ALLOWED_HOSTS = [&#39;[your-app].herokuapp.com&#39;]</pre><p>Be sure to replace [&#39;your-app&#39;] with the corresponding app name for your Heroku app.</p><p>Then redo the commit and…</p><pre>git push heroku HEAD:master</pre><h3>The End</h3><p>If you have reached the end of this tutorial, you are awesome! If you encountered any bugs/errors throughout the tutorial, please don’t be shy to post them in the comments so I can fix them quickly before anyone else experiences them. Programming is a collaborative effort after all 😁</p><h3>Project Links:</h3><p>Github Repo: <a href="https://github.com/vladyslavnUA/foodanic">Link</a></p><p>Live: <a href="https://foodanic.herokuapp.com/">Link</a></p><h3>Resources:</h3><p>Detail Page Codepen: <a href="https://codepen.io/ARIELOZAM/pen/JjRoxeN">Link</a></p><p>User Auth Page Codepen: <a href="https://codepen.io/Ihor_Sukhorada/pen/LBwRvv">Link</a></p><p>Home Page Bootstrap Template: <a href="https://startbootstrap.com/template/heroic-features">Link</a></p><p>Django MarkdownX: <a href="https://pypi.org/project/django-markdownx/">Link</a></p><p>Django Crispy Forms: <a href="https://django-crispy-forms.readthedocs.io/en/latest/">Link</a></p><p><em>P.S.</em> <em>If there are certain projects/topics you’d like me to dive into, drop them in the comments below and I will do my best to research it. Thanks for reading </em>🙂</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20034f0a3043" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/how-to-build-a-django-web-app-from-scratch-tutorial-20034f0a3043">How to build a Django web app from scratch (tutorial)</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How businesses can utilize Client Dynamic to manage their social media presence]]></title>
            <link>https://vladyslav-nykoliuk.medium.com/how-businesses-can-utilize-client-dynamic-to-manage-their-social-media-presence-8416ea5bf83?source=rss-c14ea2bb7a0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/8416ea5bf83</guid>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[analytics]]></category>
            <dc:creator><![CDATA[Vladyslav Nykoliuk]]></dc:creator>
            <pubDate>Thu, 16 Jul 2020 20:16:18 GMT</pubDate>
            <atom:updated>2020-07-16T20:27:47.643Z</atom:updated>
            <content:encoded><![CDATA[<h3>How Businesses Can Utilize Client Dynamic to Manage Their Social Media Presence</h3><h4>Brought to you by the developers of <a href="https://github.com/anbellouzi/web.io">Web.io</a>.</h4><h3><strong>What is Client Dynamic?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LPglXO9pYCZAgszYRUNVAg.png" /><figcaption>Client Dynamic’s Dashboard view</figcaption></figure><p>Client Dynamic is a social media dashboard where businesses can track their social media presence and analytics across 4 media platforms (so far!). These platforms include Facebook, Instagram, Twitter, and Linkedln. With our newly designed dashboard, businesses will be able to track their total page engagement, reach, and impressions as well as their individual post engagement and their page’s CTA (Call-To-Action).</p><h3>Why choose Client Dynamic?</h3><p>As any business that mainly relies on its’ social media presence to obtain its’ customer base can have a custom-built social media manager, Client Dynamic caters to any business that might not have the leisure to build out their own manager/dashboard. Our design has features of code-fluidity that will work with any business optimization and public business profile.</p><p>Companies may choose Client Dynamic for its:</p><ul><li>Simple/Customizable UI (User Interface)</li><li>24/7 Live Feature Support</li><li>Real-time data and analytics</li><li>Easy to Use Content Viewer</li><li>Easy to Use Content Creator</li><li>Cross-Platform Functional Build</li><li>Multiple API Server Connection</li><li>SSL/TLS Security Protocol</li></ul><h3><strong>Features</strong></h3><p>As you might have already guessed, Client Dynamic comes with numerous features that will ensure businesses have a smooth yet productive process transitioning to use our dashboard.</p><h4><strong>Customization</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PmCYlGgG2HM-4NubxfgCdQ.png" /><figcaption>Customization of Client Dynamic</figcaption></figure><p>We understand that its’ 2020, and almost anything can be <strong>(and should be!) </strong>customizable. With Client Dynamic, users can choose to customize their sidebar color, and their dashboard mode (light mode, dark mode).</p><h4>Real-time data and analytics</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GzOVVZBHo4b9_uekMg4TGg.png" /><figcaption>User Impressions (Client Dynamic)</figcaption></figure><p>Using APIs from Facebook, Twitter, Instagram, and Linkedln, businesses are able to view their post and page analytics in sections of post/page user engagements, their page reach, and page impressions.</p><h4>Easy to Use Content Viewer/Creator</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-TRMSVCKnJTxeSVjAFwAtQ.png" /><figcaption>Content Creator (Client Dynamic)</figcaption></figure><p>With our newly designed Content Creator, you can create and publish posts to Facebook easier than ever. Simply type in the text, and select the image/link you would like to publish and it’ll be uploaded in a matter of minutes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vrh4qo8NBJ38NHQ4gYQAKg.png" /><figcaption>Content Viewer (Client Dynamic)</figcaption></figure><p>In addition, businesses are able to view all of their current posts, without having to navigate to Facebook to do so.</p><h4>Multiple API Connection</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kF_xL9S73_GKuhyNzCylPQ.png" /><figcaption>SignUp View (Client Dynamic)</figcaption></figure><p>With Client Dynamic, businesses are able to manage their content across 4 separate platforms, including Facebook, Instagram, Twitter, and Linkedln.</p><h4>Security</h4><p>Through our security installed protocol, you will never have to worry about any of your personal information being exposed, as also stated in our Privacy Policy.</p><h3>Concluding Remarks</h3><p>Client Dynamic, designed for businesses, may be the next solution to bring your business into the 21st Century and put you ahead of the competitor curve, nevertheless the field of work you are in. If you have enjoyed reading this article, feel free to give me some claps <em>(hint: if you click and hold on the claps, you can give me up to 50 claps which I would greatly appreciate!)</em> The public repository for this project is <a href="https://github.com/vladyslavnUA/client-dynamic">here</a>. All the contributors to this project can be viewed in the repo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*rcHnm4A9OYSHOTOy5sFIkg.png" /><figcaption>Client Dynamic Logo</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8416ea5bf83" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Climbing the Mountain of Self-Reflection]]></title>
            <link>https://vladyslav-nykoliuk.medium.com/climbing-the-mountain-of-self-reflection-1449feb7a40c?source=rss-c14ea2bb7a0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/1449feb7a40c</guid>
            <dc:creator><![CDATA[Vladyslav Nykoliuk]]></dc:creator>
            <pubDate>Wed, 13 May 2020 00:14:42 GMT</pubDate>
            <atom:updated>2020-05-16T19:09:43.032Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*tskADCepxH3JfCC6c9BCmg.jpeg" /><figcaption>Mount Hoverla, the Carpathian Mountains in Ukraine</figcaption></figure><p>In the excerpt “Cookie of my Childhood” from <em>Peace is Every Step</em>, Thich Nhat Hanh describes his childhood experience of going outside after receiving a cookie from his mother and sitting there for long periods of time without a worry in his mind. In the text, the author attentively puts the reader into his perspective, as he depicts his experience using descriptive words of the environment, such as “[being there] with the sky, the earth, the bamboo thickets, the cat, the dog, the flowers” (Hanh, 20). This creates a warm feeling within the reader as they can themselves imagine being there, breathing the air, and seeing the sky.</p><p>Hanh is implying the importance of peace in the mind and the beauty of every moment. Humans can tend to go about life on ‘cruise control’ at times, missing the true meaning and importance of various moments in their lives, which remains yet another undiscovered experience. Although in the excerpt Hanh refers to a literal cookie he is eating, the cookie is a symbol to anything in a person’s life that will bring them joy and happiness every time.</p><p>Life and everything on earth has a system, an equilibrium. Within any life form, we can reveal a certain structure to exist, whether it be the way an organism survives, reproduces, or perishes. As Shabestari writes in <em>The Secret Rose Garden</em>, “The foot of an ant is larger than an elephant” (Shabestari, 13) if you know where to look. With this idea, anything can appear to be different depending on the perspective it’s displayed. This goes to show how extensive life and nature is then what can be seen with the naked eye.</p><p>Four years ago, I decided to take what would end up being one of the greatest decisions of my life. I determined this would be the year I did what so many in my country found a challenge, attempt after attempt. One of the biggest physical and psychological trials a young adult can have is conquering the largest mountain in Ukraine, Mount Hoverla. In the eyes of a teenager, 2,061 meters (6,762 feet) of rough terrain and steep slope up will definitely seem daunting but it was an experience I could not give up for anything in the world.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*h-xRqU58rNhOnY4d_0F4eA.jpeg" /><figcaption>The mountain range surrounding Mount Hoverla in Ukraine</figcaption></figure><p>Shabestari invites us to see the immensity of time and space in every movement and life experience. He writes that:</p><blockquote>Every particle of the world is a mirror. In each atom lies the blazing light of a thousand suns. Look closely at a grain of sand, The seed of a thousand beings can be seen. Within the pulp of a millet seed, an entire universe can be found.</blockquote><p>In essence, if you know how to look, you can see the intricacy in almost anything extant.</p><p>On the hike, all the basic elements of the world were exposed, and suddenly everything around me had a purpose I never thought of before. As Sir Arthur Conan Doyle states best,</p><blockquote>“Nature is the true revelation of the Deity to man. The nearest green field is the inspired page from which you may read all that it is needful for you to know” (Doyle, 46).</blockquote><p>In a way, the very basic formula for life can be understood from a single leaf, as all human life is akin one way or another. The nectar in the flowers was there for the birds to eat, the trees were there to provide a shelter for animals, and the rivers were there to construct a sustainable habitat. Mount Hoverla, being a key link in the chain of the Carpathian Mountains that stretch out to Europe, has some of the most breathtaking views noting how undeniably beautiful the nature of Ukraine really is. Many pursue to conquer this enduring trek but in the end, it is a test of self-will and fortitude. The trail is split into three options, straight up the mountain (3 hrs), around the main mountain (4.5 hrs), or through the meadows (longer). I chose the first option since I wanted to get back to the main base before nightfall.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/274/1*Nsu4YoBPVXpFyOGXfShzgA.jpeg" /><figcaption>Beginning of the trail</figcaption></figure><p>The trail begins through what looks like an enchanted forest taken right out of a movie. The birds chirping from every direction, the smell of the flowers that flourish all around, and the sound of modest rivers flowing all unravel the vastness of the trail that lies ahead. The peak of the Hoverla sits boldly in the distance over the tall trees that cover the sky above.</p><p>This equilibrium of life can also be interpreted as yin and yang. The balance of energy in the world. I once heard a phrase, “If you know how to look, an entire universe can be found”, that I suddenly recollected and sensed a personal relation to that reference about anything I witnessed. For example, a person can get disgusted seeing a homeless person begging for money on the street, but, there is a whole life that was lived by that person, memories, and experiences that make that person unique.</p><p>The ‘cookie’ of my own life is any time I would spend in the countryside, like on this hike, or in a park. After moving to New York, I would sometimes enjoy a mid-afternoon walk in Central Park after a long day of school or work. The atmosphere created by the tranquilizing sounds of nature, the fresh smell of trees, and the harmony of birds chirping would commence a warm feeling within me that I would never forget. I cherished the hours I would spend sitting by a tree, drawing the lake, or simply enjoying the scenic views of Midtown Manhattan. But the same was present for me in the mountains of Ukraine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*j7y46JNBmaJeRvhBZL-nrQ.jpeg" /><figcaption>Cliffs along the trail</figcaption></figure><p>More often than not, I would learn something new or do something productive at the end of these walks in the mountains or in the parks, whether it was a new project idea or to try out something I have never done before. These experiences would bring me joy and create lasting memories shared amongst good friends. The best part of these trips would be when I inadvertently wound up meeting new people. As Thich Nhat Hanh stated in <em>Peace Is Every Step</em>, “If you are attentive, you will see it,” (Hanh, 21). This quote implies that if we really care to see something, we will notice it and we will see anything in its true form. I feel that any human being can relate to having only at certain times experienced their own ‘meaningful’ moments. The irony of this situation is that although these moments can hold a significant role in a persons’ life, they can be noticed more often if people were more observant to see them.</p><p>Various stops along the route up Mount Hoverla display neighboring towns in the distance, vast meadows, more mountain range, and forests.</p><blockquote>“Nature is not a place to visit. It is home.” (Snyder, 169)</blockquote><p>Throughout the duration of this trip, the whole world to me seemed meaningless. All that was going through my mind was being present there at the moment, appreciating the nature in front of me. Nature where the trees unite with the soil, where the air unites with the clear blue sky and the bees circulate the flowers. I thought of how balanced nature is, despite constant human eradication. As Teilhard de Chardin said,</p><blockquote>“Do not forget that the value and interest of life is not so much to do conspicuous things…as to do ordinary things with the perception of their enormous value.”</blockquote><p>I strongly agree with this, as beauty can really be seen in anything if you want to see it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*yegpugvRnYeaUSiF8WpQ6Q.jpeg" /><figcaption>Views from the top of the mountain</figcaption></figure><p>Along the trail, I found my inner peace. Being one with nature, I found the meaning of my own true peace, something I felt could not be traded for anything else in the world. The trail, in a sense, felt like a road to find peace. In the mountains, nature’s greatest features are exhibited in the form of forests, rivers, and animals that inhabit the land. I found comfort in the gentle feel of the grass, nature’s bedding of the soil. These feelings surmounted to a general sense of enjoyment and pleasure I couldn’t compare to anything else I’ve ever felt.</p><p>After about an hour and a half of hiking on the trail, we reached the first base of Mount Hoverla. From there, the beauty of the vast Ukrainian lands is presented in front of my eyes. From there, visible in the distance, cows, and sheep are being herded as the sun slowly starts to descend on the plains. As I glimpsed at the boundless mountain-range, it becomes clear to me that I have entirely underestimated the power nature has and the feelings it can compose.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*GPXbXbpUVy_PcyDKhgLUrw.jpeg" /><figcaption>Ukrainian flag sits boldly on the peak of the mountain</figcaption></figure><p>Reaching the peak of the mountain, the apex of the country where my heart will always belong is an exhilarating experience, and most definitely untradeable for anything else in the world. Everything around the mountain seemed to be at a point of equilibrium as if nothing could ever disturb it. A certain sense of peace and tranquility is perceived and an aura of stillness radiates throughout the mountain range. Just as Thich Nhat Hanh recollects this feeling as something so sweet and delicate as a cookie, I too, have notably memorialized this feeling.</p><p><strong>Works Cited</strong></p><p>Hanh, Thich Nhat. <em>Peace is Every Step. </em>Bantam Books<em>, </em>1992.</p><p>Shabestari, Mahmud. <em>The Secret Rose Garden</em>. <em>The Mirror of This World</em>. Phanes Press, 2002.</p><p>Chardin, Pierre Teilhard. <em>The Human Phenomenon</em>. Sussex Academy Press, 2003.</p><p>Doyle, Arthur Conan. <em>The Stark Munro Letters</em>. CreateSpace Publishing, 2012.</p><p>Snyder, Gary. <em>The Gary Snyder Reader</em>. Counterpoint Publishing, 2012.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1449feb7a40c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to make helping the world easier]]></title>
            <link>https://vladyslav-nykoliuk.medium.com/how-to-make-helping-the-world-easier-256857708bc?source=rss-c14ea2bb7a0c------2</link>
            <guid isPermaLink="false">https://medium.com/p/256857708bc</guid>
            <category><![CDATA[humanitarian]]></category>
            <dc:creator><![CDATA[Vladyslav Nykoliuk]]></dc:creator>
            <pubDate>Sat, 12 Oct 2019 04:38:26 GMT</pubDate>
            <atom:updated>2019-10-12T09:31:27.988Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Save the World with GlobeWatch</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OZFBaEpUzR6K8F-Kaf8U4A.jpeg" /></figure><h3><strong>Values</strong></h3><h4>Areas of Interest</h4><p>The top three areas of interest that caught my attention the most were education, social/community service, and information technology. I would like to create a social networking platform to combine all three. A substantial reoccurring problem that I noticed around the world is the lack of effective public support and aid for global conflicts and humanitarian issues. Governments around the world have expressed an interest in helping resolve these conflicts in the form of creating international organizations such as the United Nations and World Food Programme. Most people are still unaware of the severe conflicts that are ongoing worldwide. Which is why a social networking platform that brings awareness to these problems would be a viable solution.</p><blockquote><strong>“The destiny of world civilization depends upon providing a decent standard of living for all mankind.”</strong></blockquote><blockquote><strong>– Norman Borlaug</strong></blockquote><h4><strong>PEST Analysis</strong></h4><p>Here, we will look at the PEST analysis. PEST is an acronym for Political, Economic, Social and Technological. The PEST analysis is used to assess these four external factors and how they affect the projects’ growth. Each of these can have a significant impact for the project long-term, as all four factors are constantly changing.</p><p>Global and humanitarian issues are on the rise, yet there is still a gap in volunteer/people’s involvement in helping the cause because they are unaware of how to help. This provides the perfect timing for a project like this because as global issues are rapidly developing, more people might be inclined to help in any way they can.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*BGFeOeULkFFeIof5WfEacA.jpeg" /></figure><p><strong>Political</strong></p><p>Most governments worldwide are involved in providing aid to relieve humanitarian and global crises. Many organizations such as United Nations, World Food Programme, International Federation of Red Cross and Red Crescent Societies, and Action Against Hunger are currently involved in aiding humanitarian crises.</p><p><strong>Economic</strong></p><p>Economically, this social network can change the way people view giving back and would boost the development of underprivileged communities around the world. This would have a positive impact not only on America’s economy, but also the economy of many other countries that would benefit from the use of this platform.</p><p><strong>Social</strong></p><p>In a world that seems to be getting more chaotic every day, it is essential that a social networking platform of this type is created. This platform will bring light to major issues that are usually neglected and will encourage its users to contribute to these global issues. This project would receive a positive social reaction by those that are interested in learning, donating, or volunteering to support a humanitarian crisis.</p><p><strong>Technological</strong></p><p>With rapid improvements in technology happening every day, this platform is a realistic solution to bring attention to these disheartening issues going on around the world.</p><h4><strong>Competitive Analysis</strong></h4><p>Competition in this realm would practically be nonexistent, because organizations are not seeking to surpass one another but are rather working together to solve these problems. The organizations that are currently working to aid humanitarian issues are the United Nations, World Food Programme, International Federation of Red Cross and Red Crescent Societies, and Action Against Hunger. The dilemma with these organizations is that average people who have never volunteered for big organizations would have no idea where to sign up and how to help. This project would provide information about global issues allowing users to explore the issue they are interested in supporting, donate money to the cause and/or volunteer in any way possible.</p><blockquote><strong>“If you can’t feed a hundred people, then just feed one.”</strong></blockquote><blockquote><strong>- Mother Teresa</strong></blockquote><p>The competitive landscape analysis below displays multiple organizations within the sphere of public service. Studying the development of these organizations has helped me figure out the best way for me to approach this project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yD6dzWPhA5kry9Ru9QH4vw.png" /><figcaption>Competitive Landscape Analysis</figcaption></figure><h3><strong>User Research</strong></h3><h4>User Interviews</h4><p>While conducting user interviews, I realized it was a great way to gather information on potential users’ motivations, feelings and their willingness to give back to the global community. As I walked around the busy streets of San Francisco, I asked people a series of questions that are listed below.</p><ol><li>Have you ever volunteered before?</li><li>Where do you go to learn about predicaments happening around the world?</li><li>Are you up to date with global issues /humanitarian crisis going on around the world and do you know how to help?</li><li>Would you regularly check a social platform that focuses on problems happening around the world?</li></ol><p>A prevailing issue that many of my interviewee’s shared was that the dominance of national news overshadowed the more critical global problems happening at hand. A surprising response I received while asking the second question is the lack of diversity in reliable sources where people can go to inform themselves about what’s going on in the world today.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WRPnCU7UiV3HtByDAnY9yQ.jpeg" /></figure><h4>Mind Mapping</h4><p>Mind mapping is the process of brainstorming thoughts that allow you to visually structure ideas for further analyzation. I started the process of mind mapping by figuring out where I would want to direct the user after each page selection. This made me think critically about how I wanted to organize my data and information. Mind mapping gave me a better understanding of which features are necessary to make this platform simple yet very efficient. This organization technique helped me break down each aspect of my platform so that the creation process can be straightforward. Below is the mind map that I created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H7JgjO7dXbnpXHOMaYIH5w.jpeg" /><figcaption>Mind Map</figcaption></figure><h3>Product Design</h3><h4>The Product</h4><p>GlobeWatch will help bring attention to global issues, host a database for organizations to list issues they are working to solve, and allow users to contribute to efforts set in motion by those organizations. We will create an algorithm that will simplify the donation process and will route the user to a list of causes they want to support. In addition, GlobeWatch will provide a live tracker of the various efforts taken by these organizations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*unVCTOKC5kGJbxEn5iSydw.jpeg" /></figure><h4>User Journey</h4><p>A user journey is created to demonstrate the way a user currently interacts with the platform and how they can interact with it if something were to change. Some questions I asked myself were “what is the first thing that should stand out on the homepage?”, “where would I want to lead the user to find out more about GlobeWatch or how they can help out?” and “how would I make the process of signing up to help an organization as straightforward as possible?” Creating this user journey has shaped the way I would like to approach making this platform. It encouraged me to simplify the list of organizations and only list the top 5 that are the most impactful. I am choosing to do this to create competition amongst organizations which will inspire them to consistently support humanitarian and global issues.</p><blockquote><strong>“Competition is always a good thing. It forces us to do our best. A monopoly renders people complacent and satisfied with mediocrity.”</strong></blockquote><blockquote><strong>- Nancy Pearcey</strong></blockquote><h4>Wireframes</h4><p>A wireframe is a visual schematic that displays a basic level of communication and flow of the website or application. Drawing a wireframe has helped me layout the design of my webpages and the primary data I would like them to show. In this wireframe, I listed the menu options on the top, the news section on the left, events and user-insight tabs on the right to provide a transparent design. Below is a picture of the wireframe for the front page of GlobeWatch. This wireframe will help the developers envision exactly what it is we are creating.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ow1Tu5T24WdYtiJBTFE14A.jpeg" /><figcaption>Wireframe</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=256857708bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>