Skip to content

Instantly share code, notes, and snippets.

@skolo-online
Created October 20, 2021 07:51
Show Gist options
  • Save skolo-online/f46317b442145ea657cd6e7a375b3c3b to your computer and use it in GitHub Desktop.
Save skolo-online/f46317b442145ea657cd6e7a375b3c3b to your computer and use it in GitHub Desktop.
Image Detailed View Page
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