mirror of
https://github.com/kristoferssolo/FOSSDB.git
synced 2025-10-21 17:50:35 +00:00
Moved to context
This commit is contained in:
parent
c95614aedf
commit
ed36aba8e0
@ -6,8 +6,11 @@ from .models import Project
|
|||||||
|
|
||||||
|
|
||||||
def index(request):
|
def index(request):
|
||||||
projects = Project.objects.all()
|
context = {
|
||||||
return render(request, "fossdb/index.html", {"title": "FOSSDB", "projects": projects})
|
"title": "FOSSDB",
|
||||||
|
"projects": Project.objects.all()
|
||||||
|
}
|
||||||
|
return render(request, "fossdb/index.html", context)
|
||||||
|
|
||||||
|
|
||||||
@login_required(login_url="login/")
|
@login_required(login_url="login/")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user