You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
303 B
Python
13 lines
303 B
Python
from django.shortcuts import render
|
|
from .models import Video
|
|
|
|
|
|
def index(request):
|
|
return render(request, 'core/index.html')
|
|
|
|
|
|
def video(request, video_id):
|
|
the_video = Video.objects.get(pk=video_id)
|
|
context = {'the_video': the_video}
|
|
return render(request, 'core/video.html', context)
|