Skip to content

Commit

Permalink
add views and urls
Browse files Browse the repository at this point in the history
  • Loading branch information
Usman4862 committed Mar 6, 2023
1 parent 143b9ae commit 55ee2dd
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
11 changes: 7 additions & 4 deletions JobFreedom/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,20 @@
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.shortcuts import render
from django.urls import path
from recruiters.views import browse_jobs, home, candidates, blogs, single_blog, contact


def home(request):
return render(request, "skillhunt/index.html")


urlpatterns = [
path('admin/', admin.site.urls),
path('', home),
path('', home, name="home"),
path('browse/jobs/', browse_jobs, name="browse-jobs"),
path('candidates/', candidates, name="candidates"),
path('blogs/', blogs, name="blogs"),
path('single/blogs/', single_blog, name="single-blog"),
path('contact/', contact, name="contact"),
]
if settings.DEBUG:
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
18 changes: 18 additions & 0 deletions recruiters/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,21 @@
from .models import Recruiter
# Create your views here.


def home(request):
return render(request, "index.html")

def browse_jobs(request):
return render(request, "browsejobs.html")

def candidates(request):
return render(request, "candidates.html")

def blogs(request):
return render(request, "blog.html")

def single_blog(request):
return render(request, "blog-single.html")

def contact(request):
return render(request, "contact.html")

0 comments on commit 55ee2dd

Please sign in to comment.