diff --git a/app.json b/app.json index 8721c4994..ecbd29c64 100644 --- a/app.json +++ b/app.json @@ -2,7 +2,7 @@ "name": "Start on Heroku: Python", "description": "A barebones Python app, which can easily be deployed to Heroku.", "image": "heroku/python", - "repository": "https://github.com/heroku/python-getting-started", + "repository": "https://github.com/jijoy/python-getting-started", "keywords": ["python", "django" ], "addons": [ "heroku-postgresql" ], "env": { diff --git a/gettingstarted/urls.py b/gettingstarted/urls.py index 13b759582..95329d6af 100644 --- a/gettingstarted/urls.py +++ b/gettingstarted/urls.py @@ -16,6 +16,7 @@ urlpatterns = [ path("", hello.views.index, name="index"), + path("hello", hello.views.hello, name="hello"), path("db/", hello.views.db, name="db"), path("admin/", admin.site.urls), ] diff --git a/hello/templates/hello.html b/hello/templates/hello.html new file mode 100644 index 000000000..dc0d4fbc5 --- /dev/null +++ b/hello/templates/hello.html @@ -0,0 +1,29 @@ + + +
+ + + + + + + + + + +Hello World
+Blog
+ + + + + + + + + + + + + diff --git a/hello/views.py b/hello/views.py index c2480724b..a3eaad919 100644 --- a/hello/views.py +++ b/hello/views.py @@ -8,6 +8,9 @@ def index(request): # return HttpResponse('Hello from Python!') return render(request, "index.html") +def hello(request): + # return HttpResponse('Hello from Python!') + return render(request, "hello.html") def db(request):