From a87dd68bc721e20cf51da760218d1df6f4e3b3cf Mon Sep 17 00:00:00 2001 From: Sharad Ahlawat Date: Sun, 8 Mar 2020 21:50:20 -0700 Subject: [PATCH] jobs working --- .gitignore | 1 + jobs/templates/jobs/home.html | 189 +--------------------------------- jobs/views.py | 5 +- 3 files changed, 9 insertions(+), 186 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b7ef9bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/media/ diff --git a/jobs/templates/jobs/home.html b/jobs/templates/jobs/home.html index a32ffe6..c9365f1 100644 --- a/jobs/templates/jobs/home.html +++ b/jobs/templates/jobs/home.html @@ -78,197 +78,16 @@
+ {% for job in jobs.all %}
- Placeholder - - Thumbnail - +
-

This is a wider card with supporting text below as a natural lead-in to - additional content. This content is a little bit longer.

-
-
- - -
- 9 mins -
-
-
-
-
-
- Placeholder - - Thumbnail - -
-

This is a wider card with supporting text below as a natural lead-in to - additional content. This content is a little bit longer.

-
-
- - -
- 9 mins -
-
-
-
-
-
- Placeholder - - Thumbnail - -
-

This is a wider card with supporting text below as a natural lead-in to - additional content. This content is a little bit longer.

-
-
- - -
- 9 mins -
-
-
-
- -
-
- Placeholder - - Thumbnail - -
-

This is a wider card with supporting text below as a natural lead-in to - additional content. This content is a little bit longer.

-
-
- - -
- 9 mins -
-
-
-
-
-
- Placeholder - - Thumbnail - -
-

This is a wider card with supporting text below as a natural lead-in to - additional content. This content is a little bit longer.

-
-
- - -
- 9 mins -
-
-
-
-
-
- Placeholder - - Thumbnail - -
-

This is a wider card with supporting text below as a natural lead-in to - additional content. This content is a little bit longer.

-
-
- - -
- 9 mins -
-
-
-
- -
-
- Placeholder - - Thumbnail - -
-

This is a wider card with supporting text below as a natural lead-in to - additional content. This content is a little bit longer.

-
-
- - -
- 9 mins -
-
-
-
-
-
- Placeholder - - Thumbnail - -
-

This is a wider card with supporting text below as a natural lead-in to - additional content. This content is a little bit longer.

-
-
- - -
- 9 mins -
-
-
-
-
-
- Placeholder - - Thumbnail - -
-

This is a wider card with supporting text below as a natural lead-in to - additional content. This content is a little bit longer.

-
-
- - -
- 9 mins -
+

{{ job.summary }}

+ {% endfor %}
diff --git a/jobs/views.py b/jobs/views.py index a0d34c7..49cb099 100644 --- a/jobs/views.py +++ b/jobs/views.py @@ -1,7 +1,10 @@ from django.shortcuts import render +from .models import Job + # Create your views here. def home(request): - return render(request, 'jobs/home.html') + jobs = Job.objects + return render(request, 'jobs/home.html', {'jobs': jobs})