In this part of the series, we would be discussing the backend part of Candidates app which constitutes of the forms, models, views and URLs of this section.
Also, in the URLs section, we will talk about the main urls.py file which should have been discussed in Part 2, but I forgot to mention it so will do it here together with the urls.py file of candidates part.
In the candidates part, we will mostly discuss all the things which are relevant to the job seekers (candidates) which will consist of the job search, job application and saving of jobs. It also shows the current status of your application, whether its accepted, pending or rejected. Also, there is an intelligence search feature built-in which shows you the jobs which are the best fit for you based on your skills and job requirements.
So, let’s understand how each segment works one by one:-
models.py
So, we are starting with the models.py file. This file contains all the parameters every object will have in our Django app which are relevant to candidates. This tells the database what features would be there in each model class.
To learn more about models in Django and how they work, Django official documentation is a great place.
So, we are having four classes in our models’ file. We first define a CHOICES variable which consists of four choices which we would be using in Profile class.
So, let’s deal with all the four classes one by one

  1. Profile
  2. Skill
  3. SavedJobs
  4. AppliedJobs

#programming #python #django #coding #bycetutorial

Build a Job Search Portal with Django — Candidates App Backend (Part 3)
1.45 GEEK