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
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:
parent
aa76bbf74b
commit
0ea875865d
5
theme/login.html
Normal file
5
theme/login.html
Normal file
@ -0,0 +1,5 @@
|
||||
{%extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="text-3xl text-green-800">Django + Tailwind CSS + Flowbite</h1>
|
||||
{% endblock content %}
|
||||
@ -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>
|
||||
|
||||
@ -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': [
|
||||
|
||||
@ -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
4
zitate/views.py
Normal file
@ -0,0 +1,4 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
def login(request):
|
||||
return render(request, "login.html")
|
||||
Loading…
x
Reference in New Issue
Block a user