category, tag{{% %}}, | filter
Method 2:
add author on job detail page, after title:
output:
{{job_obj.title}} ---> tag
{{job.content | truncatewords:30}} ---> tag | filter
Add a link for Category
job/urls.py: add path of ‘views. jobs_with_type’ -> job/views.py -> add method of ‘jobs_with_type’
- job/urls.py: add path of ‘views. jobs_with_type’
2. job/views.py: create method ‘jobs_with_type’
def job_with_type(request, job_type_pk):
return render(request,'‘jobs_with_type.html',conext)
then build the dict context:
then get_object_or_404()
build key:value pair:
3. build jobs_with_type.html