from django.shortcuts import render

from artist.models import Artist

__all__ = ('artist_list',)



def artist_list(requests):
    # 전체 Artist 목록을 ul>li로 출력
    # 템플릿은 'artist/artist_list.html'을 사용
    # 전달할 context 키는 'artists'를 사용
    artists = Artist.objects.all()
    context = {
        'artists': artists,
    }
    return render(
        requests,
        'artist/artist_list.html',
        context,
    )
3f3445db8cd56530f569c6248cfb0318e17ea4a6
<mask token>

<mask token>


def artist_list(requests):
    artists = Artist.objects.all()
    context = {'artists': artists}
    return render(requests, 'artist/artist_list.html', context)

<mask token>
__all__ = 'artist_list',


def artist_list(requests):
    artists = Artist.objects.all()
    context = {'artists': artists}
    return render(requests, 'artist/artist_list.html', context)

from django.shortcuts import render
from artist.models import Artist
__all__ = 'artist_list',


def artist_list(requests):
    artists = Artist.objects.all()
    context = {'artists': artists}
    return render(requests, 'artist/artist_list.html', context)

from django.shortcuts import render

from artist.models import Artist

__all__ = ('artist_list',)



def artist_list(requests):
    # 전체 Artist 목록을 ul>li로 출력
    # 템플릿은 'artist/artist_list.html'을 사용
    # 전달할 context 키는 'artists'를 사용
    artists = Artist.objects.all()
    context = {
        'artists': artists,
    }
    return render(
        requests,
        'artist/artist_list.html',
        context,
    )