During the past month or so I’ve been working on a personal project of mine that includes a JavaScript live search also known as AJAX search, so I decided to make an quick article out of it and guide you through it. As a disclaimer, I want to point out that this is not the most efficient way to build feature like this but it shows the general idea.

What we are going to build is shown on the image below. Our feature consists of a simple search bar and a drop-down bow where our search results are displayed. …


I have been working on a personal project for a while and stumble across an interesting point during the build. To put things into context, I wanted to build a site footer that holds additional information to the site content. As probably most of you know footer section is shared across your whole application regardless the page you are on. So in this article I will go over two different ways of building such feature.

Photo by Faisal on Unsplash

For those who never worked with Django I would recommend checking some of my other articles where I explain some basic principles about Django framework…


Recently I’ve been working on a side project and I wanted to build a JavaScript pagination system for certain items on a page. What I wanted was something as simple as possible. I was browsing the web and what I have found is that most people like to complicate things and make them harder to understand and even harder to implement. In this article, I will try to explain how you can easily build a pagination feature and add it to a new or existing project.

Photo by Aung Soe Min on Unsplash

The first thing we have to do is build a mock data set that…


Lately, I’ve been exploring the asynchronous world and primarily the asyncio library and stumble across an interesting finding. Most of the async stuff going on is based on Coroutines, Future objects, Generators and much more. Since I am a guy who loves to dig deeper into stuff I decided to explorer Python generators and how they are related to the async world.

Photo by James Harrison on Unsplash

First things first. What is a generator. A generator is a special class of functions that simplify the task of writing iterators. Regular functions compute a value and return it, but generators return an iterator that returns a…


In a previous article, we built a contact application where users can submit their requests via a form on the website. Just as a reminder here is how the form looks like.

Fig. 1. Standard contact form for an application

When a user submits the form it gets verified and saved by Django’s form_valid() method. By utilizing this method, as well as form_invalid() we can send different notification emails to regular users, admins depending on which method is trigger after form submission. In addition to regular information that could be sent via email (such as the user submitting the form, his/her email, subject, and actual message) we are…


In the last article, I have covered the basics of setting up a Django project. In this article, I am going to cover something that many people underestimate and that is the Model View Controller Framework that Django relies on. Even though most people know it as MVC framework, Django uses a slightly different approach and the actual framework that is being used is Model View Template. One area of Django that most people are missing is how requests are actually handled and what is the information flow.

Photo by Faisal on Unsplash

The Model

A model is the single, definitive source of information about data. It…


Asyncio is also something to be considered also but the point of the article was elsewhere. asyncio is not trully asynchronous because all tasks are executed in an synchonous manner. It appears to be async because tasks are switching between each other when on wait.

I am about to publish another article for asyncio and I have decided not to include it here.


In the last article, I have covered the basics of setting up a Django project. In this article, we are going to create a simple contact application that will help our users to contact us.

The first thing to do is to create the application itself. That pretty easy thing to do and Django provides a tool for it. Do not forget to activate your virtual environment before application creation.

$ python manage.py startapp contact

When you create a Django application you get a folder similar to this one.

total 44
./
../
admin.py
apps.py
forms.py
__init__.py
models.py
tests.py
urls.py
views.py…


This is the first in a series of articles in which we are going to build a portfolio application where you can showcase yourself and your work. We are going to cover important topics and I will try to explain each of them in a separate article. This series of articles will mainly focus on the Django development side of things. If you are interested in the front-end, I may write a couple of articles explaining that part of the application. …

Jordan P. Raychev

Network, system and software engineer with true passion about technology. Love to read and spend time in nature.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store