This commit is contained in:
Allen
2023-09-23 19:48:58 -05:00
parent 07ece20adb
commit 2834da98c1
27 changed files with 8 additions and 1692 deletions

View File

@ -55,11 +55,12 @@ ROOT_URLCONF = 'seatstock_django.urls'
BASE_DIR = Path(__file__).resolve().parent.parent
TEMPLATE_DIR = os.path.join(BASE_DIR, "seatstock_django", "templates")
STATIC_DIR = os.path.join(BASE_DIR, "seatstock_django", "static")
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [TEMPLATE_DIR],
'DIRS': [TEMPLATE_DIR, STATIC_DIR],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [

View File

@ -1,16 +0,0 @@
<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>