from django.shortcuts import get_object_or_404, render
from django.http import HttpResponse
from . import models

def index(request):
    return render(request, 'hello.html', { "name": "stranger" })

def get_name(request, name_id):
    name = get_object_or_404(models.Name, id = name_id)
    return render(request, 'hello.html', { "name": name.name })

a66d098786c163f68fe26ecff7096934f3517398
<mask token>

<mask token>


def index(request):
    return render(request, 'hello.html', {'name': 'stranger'})


<mask token>

<mask token>


def index(request):
    return render(request, 'hello.html', {'name': 'stranger'})


def get_name(request, name_id):
    name = get_object_or_404(models.Name, id=name_id)
    return render(request, 'hello.html', {'name': name.name})

from django.shortcuts import get_object_or_404, render
from django.http import HttpResponse
from . import models


def index(request):
    return render(request, 'hello.html', {'name': 'stranger'})


def get_name(request, name_id):
    name = get_object_or_404(models.Name, id=name_id)
    return render(request, 'hello.html', {'name': name.name})

from django.shortcuts import get_object_or_404, render
from django.http import HttpResponse
from . import models

def index(request):
    return render(request, 'hello.html', { "name": "stranger" })

def get_name(request, name_id):
    name = get_object_or_404(models.Name, id = name_id)
    return render(request, 'hello.html', { "name": name.name })
