Use html template to generate testapp views
This commit is contained in:
15
testapp/templates/testapp/index.html
Normal file
15
testapp/templates/testapp/index.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Testapp</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Testapp</h1>
|
||||
<p>This is the testapp.</p>
|
||||
{% if click_count %}
|
||||
<p>This page was requested {{ click_count }} times.</p>
|
||||
{% else %}
|
||||
<p>Error: Could not get request count from database.</p>
|
||||
{% endif %}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user