mirror of
https://github.com/ConjureETS/site-2015.git
synced 2026-03-24 12:31:24 +00:00
15 lines
357 B
Python
15 lines
357 B
Python
from django.shortcuts import render
|
|
from project.models import Project
|
|
|
|
|
|
def index(request):
|
|
projects = Project.objects.all()
|
|
|
|
return render(request, 'project/index.html', {'projects': projects})
|
|
|
|
|
|
def show(request, project_id):
|
|
project = Project.objects.get(pk=project_id)
|
|
|
|
return render(request, 'project/show.html', {'project': project})
|