jazzmin as a more beauty admin panel

This commit is contained in:
gw3000 2023-07-11 18:04:19 +02:00
parent 8ea5c87c9c
commit aca1c3c3fa
117 changed files with 4 additions and 0 deletions

0
app/sites/__init__.py Normal file
View file

3
app/sites/admin.py Normal file
View file

@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

6
app/sites/apps.py Normal file
View file

@ -0,0 +1,6 @@
from django.apps import AppConfig
class SitesConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'sites'

View file

3
app/sites/models.py Normal file
View file

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

View file

@ -0,0 +1,10 @@
{% extends 'base.html' %}
{% block content %}
<div class="row" style="text-align: center;">
<div>
<h1 style="margin-bottom: 5px;">FallenBirdy</h1>
<img src="../../../static/img/wvhLogo12001200300x.png" alt="Logo Wildvogelhilfe Jena" class="logowvh">
<a href="{% url 'account_login' %}" id="loginMain">Einloggen</a>
</div>
</div>
{% endblock content %}

3
app/sites/tests.py Normal file
View file

@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

9
app/sites/urls.py Normal file
View file

@ -0,0 +1,9 @@
from .views import index, privacy, impress
from django.urls import path
urlpatterns = [
path("", index, name="index"),
path("privacy/", privacy, name="privacy"),
path("impress/", impress, name="impress"),
]

13
app/sites/views.py Normal file
View file

@ -0,0 +1,13 @@
from django.shortcuts import redirect, render
def index(request):
return render(request, "sites/index.html")
def privacy(request):
return render(request, "sites/privacy.html")
def impress(request):
return render(request, "sites/impress.html")