-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3cb338e
commit b77302a
Showing
1 changed file
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,32 @@ | ||
from django.shortcuts import render | ||
|
||
from recruiters.models import JobPost | ||
from employees.models import EmployeeProfile | ||
# Create your views here. | ||
def browse_jobs(request): | ||
jobs = JobPost.objects.all() | ||
context = { | ||
'Jobs': jobs, | ||
} | ||
|
||
return render(request, "browsejobs.html", context=context) | ||
|
||
def candidates(request): | ||
employees = EmployeeProfile.objects.all() | ||
context = { | ||
'employees' : employees, | ||
} | ||
return render(request, "candidates.html", context=context) | ||
|
||
def blogs(request): | ||
return render(request, "blog.html") | ||
|
||
def single_blog(request): | ||
return render(request, "blog-single.html") | ||
|
||
def want_job(request): | ||
jobs = JobPost.objects.all() | ||
context = { | ||
'Jobs': jobs, | ||
} | ||
return render(request, 'want-job.html', context=context) | ||
|