added first theme
All checks were successful
Django Backend Validation / build (debian-latest, 3.11) (push) Successful in 14s
Django Backend Validation / build (debian-latest, 3.12) (push) Successful in 14s
Django Backend Validation / build (ubuntu-latest, 3.11) (push) Successful in 13s
Django Backend Validation / build (ubuntu-latest, 3.12) (push) Successful in 14s

Signed-off-by: Jochen Mehlich <coding@jochenmehlich.de>
This commit is contained in:
Jochen Mehlich 2024-08-28 14:24:58 +02:00
parent aa76bbf74b
commit 0ea875865d
5 changed files with 14 additions and 2 deletions

5
theme/login.html Normal file
View File

@ -0,0 +1,5 @@
{%extends "base.html" %}
{% block content %}
<h1 class="text-3xl text-green-800">Django + Tailwind CSS + Flowbite</h1>
{% endblock content %}

View File

@ -12,7 +12,8 @@
<body class="bg-gray-50 font-serif leading-normal tracking-normal">
<div class="container mx-auto">
<section class="flex items-center justify-center h-screen">
<h1 class="text-5xl">Django + Tailwind = ❤️</h1>
{% block content %}
{% endblock content %}
</section>
</div>
</body>

View File

@ -58,7 +58,7 @@ ROOT_URLCONF = 'zitate.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'DIRS': [BASE_DIR / 'theme'],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [

View File

@ -16,8 +16,10 @@ Including another URLconf
"""
from django.contrib import admin
from django.urls import path, include
from .views import *
urlpatterns = [
path('admin/', admin.site.urls),
path("__reload__/", include("django_browser_reload.urls")),
path("login", login, name="login"),
]

4
zitate/views.py Normal file
View File

@ -0,0 +1,4 @@
from django.shortcuts import render
def login(request):
return render(request, "login.html")