Created
October 20, 2021 07:51
-
-
Save skolo-online/f46317b442145ea657cd6e7a375b3c3b to your computer and use it in GitHub Desktop.
Image Detailed View Page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def imageDetailPage(request, slug1, slug2): | |
category = Category.objects.get(slug=slug1) | |
image = Image.objects.get(slug=slug2) | |
context = {} | |
context['category'] = category | |
context['image'] = image | |
return render(request, 'main/image.html', context) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment