mirror of
https://github.com/DerTyp7/tealcode-django-python.git
synced 2025-10-29 04:22:08 +01:00
agb
This commit is contained in:
@@ -41,6 +41,7 @@ INSTALLED_APPS = [
|
||||
'django.contrib.messages',
|
||||
'django.contrib.staticfiles',
|
||||
'main.apps.MainConfig',
|
||||
'users.apps.UsersConfig',
|
||||
'contact.apps.ContactConfig',
|
||||
'crispy_forms',
|
||||
'crispy_bootstrap5',
|
||||
|
||||
@@ -82,7 +82,8 @@
|
||||
|
||||
<footer class="py-3 my-4">
|
||||
<ul class="nav justify-content-center pb-3 mb-3">
|
||||
<li class="nav-item"><a id="a-privacy" href="/privacy/" class="nav-link px-2 text-muted">Cookies/Privacy/Datenschutz</a></li>
|
||||
<li class="nav-item"><a id="a-privacy" href="/privacy/" class="nav-link px-2 text-muted">Cookies/Privacy</a></li>
|
||||
<li class="nav-item"><a id="a-tos" href="/tos/" class="nav-link px-2 text-muted">TOS/AGBs</a></li>
|
||||
<li class="nav-item"><a id="a-about"href="/about/" class="nav-link px-2 text-muted">About</a></li>
|
||||
<li class="nav-item"><a id="a-contact"href="/contact/" class="nav-link px-2 text-muted">Contact</a></li>
|
||||
</ul>
|
||||
|
||||
10
TealCode/main/templates/main/tos.html
Normal file
10
TealCode/main/templates/main/tos.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
|
||||
<div class="container mx-auto text-center">
|
||||
<h2 class="mt-5 fw-bold" style="letter-spacing: 1.5px;">Terms Of Service / AGBs (GER)</h2>
|
||||
<p class="mt-3" style="letter-spacing: 1px;">
|
||||
|
||||
</p>
|
||||
</div>
|
||||
{% endblock content %}
|
||||
@@ -7,6 +7,7 @@ urlpatterns = [
|
||||
path('category/<str:category>/', views.category, name="main-category"),
|
||||
path('about/', views.about, name="main-about"),
|
||||
path('privacy/', views.privacy, name="main-privacy"),
|
||||
path('tos/', views.tos, name="main-tos"),
|
||||
path('rating/<str:topic_title>/<int:is_positive>/', views.rating, name="main-rating"),
|
||||
path('search/<str:value>/', views.search, name="main-search"),
|
||||
path('sitemap.xml', views.sitemap, name="main-sitemap"),
|
||||
|
||||
@@ -91,6 +91,10 @@ def about(req):
|
||||
def privacy(req):
|
||||
return render(req, "main/privacy.html", {'current': 'privacy'})
|
||||
|
||||
def tos(req):
|
||||
return render(req, "main/tos.html", {'current': 'tos'})
|
||||
|
||||
|
||||
def rating(req, topic_title, is_positive):
|
||||
topic = Topic.objects.filter(title=topic_title).first()
|
||||
|
||||
|
||||
0
TealCode/users/__init__.py
Normal file
0
TealCode/users/__init__.py
Normal file
3
TealCode/users/admin.py
Normal file
3
TealCode/users/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
6
TealCode/users/apps.py
Normal file
6
TealCode/users/apps.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class UsersConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'users'
|
||||
0
TealCode/users/migrations/__init__.py
Normal file
0
TealCode/users/migrations/__init__.py
Normal file
3
TealCode/users/models.py
Normal file
3
TealCode/users/models.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
3
TealCode/users/tests.py
Normal file
3
TealCode/users/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
3
TealCode/users/views.py
Normal file
3
TealCode/users/views.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
Reference in New Issue
Block a user