import os
import requests

from django.shortcuts import render
from django.http import HttpResponse

from .models import Greeting

# Create your views here.
def index(request):
    times = int(os.environ.get('TIMES', 3))
    return HttpResponse('Hello! ' * times)
    #r = requests.get('http://httpbin.org/status/418')
    #print(r.text)
    #return HttpResponse('<pre>' + r.text + '</pre>')
    #return render(request, 'index.html')


def db(request):

    greeting = Greeting()
    greeting.save()

    greetings = Greeting.objects.all()

    return render(request, 'db.html', {'greetings': greetings})


@@ -178,258 +178,42 @@
     
-times = int(os.environ.get('TIMES', 3))%0A    return HttpResponse('Hello! ' * times)%0A    #r = requests.get('http://httpbin.org/status/418')%0A    #print(r.text)%0A    #return HttpResponse('%3Cpre%3E' + r.text + '%3C/pre%3E')%0A    #return render(request, 'index.html
+return HttpResponse('Hello World! 
 ')%0A%0A

modified hello world message