Added django templates and dynamic pages

This commit is contained in:
Allen
2023-09-23 23:02:36 -05:00
parent 2834da98c1
commit 3916475c54
24 changed files with 1696 additions and 1 deletions

View File

@ -1,3 +1,3 @@
#!/bin/bash
docker build -t docker-django .
docker build --network=host -t docker-django .

View File

@ -0,0 +1,16 @@
<html>
<head>
<meta charset="utf-8" />
<title>Auth0 Example</title>
</head>
<body>
{% if session %}
<h1>Welcome {{session.userinfo.name}}!</h1>
<p><a href="{% url 'logout' %}">Logout</a></p>
<div><pre>{{pretty}}</pre></div>
{% else %}
<h1>Welcome Guest</h1>
<p><a href="{% url 'login' %}">Login</a></p>
{% endif %}
</body>
</html>