encyclopedia/views.py
def random_page(request):
    """ Function to get any random page"""

    get_random_page = random.choice(entries)  #Get random entry from the list of available entries
    get_md = util.get_entry(get_random_page)
    converted_page = markdowner.convert(get_md)
    return render(request, "encyclopedia/entry.html", {
        "converted_page": converted_page,
        "title": get_random_page,
    })
 Function to get any random page
Function to get any random page
Function to get any random page
def random_page(request):
    get_random_page = random.choice(entries)  
    get_md = util.get_entry(get_random_page)
    converted_page = markdowner.convert(get_md)
    return render(request, "encyclopedia/entry.html", {
        "converted_page": converted_page,
        "title": get_random_page,
    })
def random_page ( request ) : get_random_page = random . choice ( entries ) get_md = util . get_entry ( get_random_page ) converted_page = markdowner . convert ( get_md ) return render ( request , "encyclopedia/entry.html" , { "converted_page" : converted_page , "title" : get_random_page , } )
Function to get any random page
Function to get any random page
""" Function to get any random page""" #Get random entry from the list of available entries
request