# from django.shortcuts import render
#
# from django.views import generic
# from artists.models import Umetnina, Umetnik
#
#
# izdelki = [
#     {
#         'avtor': '<NAME>',
#         'naslov': 'Fresco Decoration',
#         'vsebina': 'https://www.wga.hu/art/a/ademollo/siena2.jpg',
#         'datum': '1800-1810',
#         'url': '/1'
#     },
#     {
#         'avtor': '<NAME>',
#         'naslov': 'Madonna with Child',
#         'vsebina': 'https://www.wga.hu/art/z/zurn/martin/madchil.jpg',
#         'datum': '1601-1650',
#         'url': '/2'
#     },
# ]
#
#
# def home(request):
#     popularno = {
#         'izdelki': izdelki
#     }
#     return render(request, 'homepage/home.html', popularno)
#
#
# def about(request):
#     return render(request, 'homepage/about.html', {'naslov': 'About'})
#
#
# def fresco(request):
#     return render(request, 'homepage/1.html', {'naslov': 'Fresco'})
#
#
# def madonna(request):
#     return render(request, 'homepage/2.html', {'naslov': 'Madonna'})
#
#
# def artisti(request):
#     return render(request, 'homepage/artisti.html', {'naslov': 'artisti'})
#
#
# def test(request):
#     return render(request, 'homepage/userList.html', {'naslov': 'test', 'vsebina': Umetnik.objects.all()})
#
#
# class DetailView(generic.DetailView):
#    model = Umetnina
#    template_name = 'homepage/detail.html'
#    def get_queryset(self):
#        return Umetnina.objects.order_by('-year')

# from django.shortcuts import render
#
# from django.views import generic
# from artists.models import Umetnina, Umetnik
#
#
# izdelki = [
#     {
#         'avtor': '<NAME>',
#         'naslov': 'Fresco Decoration',
#         'vsebina': 'https://www.wga.hu/art/a/ademollo/siena2.jpg',
#         'datum': '1800-1810',
#         'url': '/1'
#     },
#     {
#         'avtor': '<NAME>',
#         'naslov': 'Madonna with Child',
#         'vsebina': 'https://www.wga.hu/art/z/zurn/martin/madchil.jpg',
#         'datum': '1601-1650',
#         'url': '/2'
#     },
# ]
#
#
# def home(request):
#     popularno = {
#         'izdelki': izdelki
#     }
#     return render(request, 'homepage/home.html', popularno)
#
#
# def about(request):
#     return render(request, 'homepage/about.html', {'naslov': 'About'})
#
#
# def fresco(request):
#     return render(request, 'homepage/1.html', {'naslov': 'Fresco'})
#
#
# def madonna(request):
#     return render(request, 'homepage/2.html', {'naslov': 'Madonna'})
#
#
# def artisti(request):
#     return render(request, 'homepage/artisti.html', {'naslov': 'artisti'})
#
#
# def test(request):
#     return render(request, 'homepage/userList.html', {'naslov': 'test', 'vsebina': Umetnik.objects.all()})
#
#
# class DetailView(generic.DetailView):
#    model = Umetnina
#    template_name = 'homepage/detail.html'
#    def get_queryset(self):
#        return Umetnina.objects.order_by('-year')

# from django.shortcuts import render # # from django.views import generic # from artists.models import Umetnina, Umetnik # # # izdelki = [ #     { #         'avtor': '<NAME>', #         'naslov': 'Fresco Decoration', #         'vsebina': 'https://www.wga.hu/art/a/ademollo/siena2.jpg', #         'datum': '1800-1810', #         'url': '/1' #     }, #     { #         'avtor': '<NAME>', #         'naslov': 'Madonna with Child', #         'vsebina': 'https://www.wga.hu/art/z/zurn/martin/madchil.jpg', #         'datum': '1601-1650', #         'url': '/2' #     }, # ] # # # def home(request): #     popularno = { #         'izdelki': izdelki #     } #     return render(request, 'homepage/home.html', popularno) # # # def about(request): #     return render(request, 'homepage/about.html', {'naslov': 'About'}) # # # def fresco(request): #     return render(request, 'homepage/1.html', {'naslov': 'Fresco'}) # # # def madonna(request): #     return render(request, 'homepage/2.html', {'naslov': 'Madonna'}) # # # def artisti(request): #     return render(request, 'homepage/artisti.html', {'naslov': 'artisti'}) # # # def test(request): #     return render(request, 'homepage/userList.html', {'naslov': 'test', 'vsebina': Umetnik.objects.all()}) # # # class DetailView(generic.DetailView): #    model = Umetnina #    template_name = 'homepage/detail.html' #    def get_queryset(self): #        return Umetnina.objects.order_by('-year')