Python code of Online Job Portal And Recruitment System
Online Job Portal And Recruitment System project using Python. admin.py
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
from django.contrib import admin from .models import * admin.site.register(Category) class ApplicantAdmin(admin.ModelAdmin): list_display = ('job','user','timestamp') admin.site.register(Applicant,ApplicantAdmin) class JobAdmin(admin.ModelAdmin): list_display = ('title','is_published','is_closed','timestamp') admin.site.register(Job,JobAdmin) class BookmarkJobAdmin(admin.ModelAdmin): list_display = ('job','user','timestamp') admin.site.register(BookmarkJob,BookmarkJobAdmin) |
models.py
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
from django.db import models from django.contrib.auth import get_user_model from django.urls import reverse User = get_user_model() from ckeditor.fields import RichTextField from taggit.managers import TaggableManager JOB_TYPE = ( ('1', "Full time"), ('2', "Part time"), ('3', "Internship"), ) class Category(models.Model): name = models.CharField(max_length=50) def __str__(self): return self.name class Job(models.Model): user = models.ForeignKey(User, related_name='User', on_delete=models.CASCADE) title = models.CharField(max_length=300) description = RichTextField() tags = TaggableManager() location = models.CharField(max_length=300) job_type = models.CharField(choices=JOB_TYPE, max_length=1) category = models.ForeignKey(Category,related_name='Category', on_delete=models.CASCADE) salary = models.CharField(max_length=30, blank=True) company_name = models.CharField(max_length=300) company_description = RichTextField(blank=True, null=True) url = models.URLField(max_length=200) last_date = models.DateField() is_published = models.BooleanField(default=False) is_closed = models.BooleanField(default=False) timestamp = models.DateTimeField(auto_now=True) def __str__(self): return self.title class Applicant(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE) job = models.ForeignKey(Job, on_delete=models.CASCADE) timestamp = models.DateTimeField(auto_now=True, auto_now_add=False) def __str__(self): return self.job.title class BookmarkJob(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE) job = models.ForeignKey(Job, on_delete=models.CASCADE) timestamp = models.DateTimeField(auto_now=True, auto_now_add=False) def __str__(self): return self.job.title |
tests.py
1 2 3 |
from django.test import TestCase # Create your tests here. |
Download full project of Online Job Portal using python More helping material for ONLINE JOB PORTAL AND RECRUITMENT SYSTEM ABSTRACT, Intro, Objectives, scope, tools, and technologies for ONLINE JOB PORTAL AND RECRUITMENT SYSTEM Functional and Nonfunctional requirements for ONLINE JOB …
Python code of Online Job Portal And Recruitment System Read More »