Skip to content

Commit

Permalink
demo
Browse files Browse the repository at this point in the history
  • Loading branch information
karansangha committed Feb 17, 2018
1 parent f8b8dc4 commit ae09b65
Show file tree
Hide file tree
Showing 475 changed files with 54,490 additions and 56 deletions.
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ verify_ssl = true
django = "*"
gunicorn = "*"
django-heroku = "*"
requests = "*"


[requires]
Expand Down
137 changes: 84 additions & 53 deletions Pipfile.lock
100755 → 100644

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: gunicorn gettingstarted.wsgi
web: gunicorn gettingstarted.wsgi --log-file -
7 changes: 5 additions & 2 deletions hello/views.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
from django.shortcuts import render
from django.http import HttpResponse
import requests

from .models import Greeting

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



def db(request):
Expand Down
Loading

0 comments on commit ae09b65

Please sign in to comment.