<reponame>cs-fullstack-2019-spring/django-intro1-cw-itayanna<filename>classwork1/classworkApp1/views.py


# imorting the respons function

from django.http import HttpResponse



# functions created to put a respons in eachof the paths

def index(request):
    return HttpResponse("This is a bad request. Start with the music route")

def music(request):
    return HttpResponse("Music: chronixx/ laurynHill/ jojo")

def chronixx(request):
    return HttpResponse('<NAME>, popularly known as Chronixx, is a Jamaican reggae artist. '
                        'His stage name replaced the name "Little Chronicle" which he was'
                        ' given because of his father, the singer "Chronicle". ')

def laurynHill(request):
    return HttpResponse('<NAME> is an American singer, songwriter and rapper, known for being a member of Fugees and'
                        ' for her solo album The Miseducation of <NAME>, which won many awards and broke several sales records.')

def jojo(request):
    return HttpResponse('<NAME> "JoJo" Levesque is an American singer, songwriter, and actress. Raised in '
                        'Foxborough, Massachusetts, she performed in various singing competitions as a child, and after competing on the ')


# imorting the respons function

from django.http import HttpResponse



# functions created to put a respons in eachof the paths

def index(request):
    return HttpResponse("This is a bad request. Start with the music route")

def music(request):
    return HttpResponse("Music: chronixx/ laurynHill/ jojo")

def chronixx(request):
    return HttpResponse('<NAME>, popularly known as Chronixx, is a Jamaican reggae artist. '
                        'His stage name replaced the name "Little Chronicle" which he was'
                        ' given because of his father, the singer "Chronicle". ')

def laurynHill(request):
    return HttpResponse('<NAME> is an American singer, songwriter and rapper, known for being a member of Fugees and'
                        ' for her solo album The Miseducation of <NAME>, which won many awards and broke several sales records.')

def jojo(request):
    return HttpResponse('<NAME> "JoJo" Levesque is an American singer, songwriter, and actress. Raised in '
                        'Foxborough, Massachusetts, she performed in various singing competitions as a child, and after competing on the ')
# imorting the respons function # functions created to put a respons in eachof the paths