ot
This commit is contained in:
Binary file not shown.
@ -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': [
|
||||
|
@ -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>
|
Reference in New Issue
Block a user