1👍
✅
Try to replace unique_id in your function with unique_code
def single(request, unique_code):
try:
uid = get_object_or_404(Address, unique_code=unique_code)
final = uid
except:
raise Http404
return render_to_response('single_user.html', locals(), context_instance=RequestContext(request))
Source:stackexchange.com