tests.py
1 2 3 |
from django.test import TestCase # Create your tests here. |
manage.py
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'job.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you sure it's installed and " "available on your PYTHONPATH environment variable? Did you " "forget to activate a virtual environment?" ) from exc execute_from_command_line(sys.argv) if __name__ == '__main__': main() |
admin.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 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
from django import forms from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.contrib.auth.forms import ReadOnlyPasswordHashField from .models import User class AddUserForm(forms.ModelForm): """ New User Form. Requires password confirmation. """ password1 = forms.CharField( label='Password', widget=forms.PasswordInput ) password2 = forms.CharField( label='Confirm password', widget=forms.PasswordInput ) class Meta: model = User fields = ('email', 'first_name', 'last_name', 'gender', 'role', ) def clean_password2(self): # Check that the two password entries match password1 = self.cleaned_data.get("password1") password2 = self.cleaned_data.get("password2") if password1 and password2 and password1 != password2: raise forms.ValidationError("Passwords do not match") return password2 def save(self, commit=True): # Save the provided password in hashed format user = super().save(commit=False) user.set_password(self.cleaned_data["password1"]) if commit: user.save() return user class UpdateUserForm(forms.ModelForm): """ Update User Form. Doesn't allow changing password in the Admin. """ password = ReadOnlyPasswordHashField() class Meta: model = User fields = ( 'email', 'password', 'first_name', 'gender', 'role', 'last_name', 'is_active', 'is_staff' ) def clean_password(self): # Password can't be changed in the admin return self.initial["password"] class UserAdmin(BaseUserAdmin): form = UpdateUserForm add_form = AddUserForm list_display = ('email', 'first_name', 'last_name', 'gender', 'role', 'is_staff') list_filter = ('is_staff', ) fieldsets = ( (None, {'fields': ('email', 'password')}), ('Personal info', {'fields': ('first_name', 'last_name', 'gender', 'role', )}), ('Permissions', {'fields': ('is_active', 'is_staff')}), ) add_fieldsets = ( ( None, { 'classes': ('wide',), 'fields': ( 'email', 'first_name', 'last_name', 'gender', 'role', 'password1', 'password2' ) } ), ) search_fields = ('email', 'first_name', 'last_name') ordering = ('email', 'first_name', 'last_name') filter_horizontal = () admin.site.register(User, UserAdmin) |
EXISTING SYSTEM
The current system for viewing jobs and visiting the company/department manually to submit a CV. People visit the department/company physically which requires effort and time for job seekers to give their CV an interview in the company/department, employers view the CV and then collect additional information and then decided to select or reject job seekers.
- It is a time-consuming process
- User must go to company/department for an interview
- It is less user-friendly
- Not in reach of distant users
Disadvantages of the Existing System Process Do not have online interview options
- Time-consuming
PROPOSED SYSTEM
The proposed system is a web-based application that allows applicants and employers to register their details Applicants can browse through the vacancy details that are posted and can apply for the jobs online. Employers can browse through the posted resumes and select suitable candidates.
- Ease of posting job vacancy by employer
- Ease generated reports
Benefits of the Proposed System
- Interview Online:
- The facility of interview job seekers.
- User-Friendly Interface:
- Friendly User Interface Ease to use for job seekers.
- TiMe Saving Method:
- Saves job seekers and Administrators time.
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 PORTAL AND RECRUITMENT SYSTEM Advertisement
- Python code for Online Job Portal And Recruitment System
- Use Case Detailed Description For Online Job Portal And Recruitment System
- Use Case Diagram Of Online Job Portal And Recruitment System
- Sequence Diagram Of Online Job Portal And Recruitment System
- Class Diagram Of Online Job Portal And Recruitment System
- ERD Of Online Job Portal And Recruitment System Entity-relationship Diagram
- Software Testing Online Job Portal And Recruitment System [Test Cases]
- Python code of Online Job Portal And Recruitment System