Set up teams app: create app structure, register in settings, and update base template formatting.

This commit is contained in:
2026-04-18 12:36:42 +02:00
parent 72e6388c0c
commit fb830710f2
8 changed files with 18 additions and 1 deletions

View File

@@ -52,6 +52,7 @@ INSTALLED_APPS = [
"theme.apps.ThemeConfig", # Tailwind theme app
"members.apps.MembersConfig",
"backend.apps.BackendConfig",
"teams.apps.TeamsConfig",
]
MIDDLEWARE = [

0
teams/__init__.py Normal file
View File

3
teams/admin.py Normal file
View File

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

5
teams/apps.py Normal file
View File

@@ -0,0 +1,5 @@
from django.apps import AppConfig
class TeamsConfig(AppConfig):
name = "teams"

View File

3
teams/models.py Normal file
View File

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

3
teams/tests.py Normal file
View File

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

View File

@@ -16,6 +16,8 @@
{% if request.user.is_superuser %}
<li class="menu-title mt-4">Configuration</li>
<li><a href="{% url "backend:configuration" %}" class="menu-item {% if configuration in request.path %}menu-active{% endif %}" data-menu="configuration"><i class="fa-solid fa-screwdriver-wrench"></i> Settings</a></li>
<li><a href="{% url "backend:configuration" %}" class="menu-item {% if configuration in request.path %}menu-active{% endif %}" data-menu="configuration">
<i class="fa-solid fa-screwdriver-wrench"></i> Settings
</a></li>
{% endif %}
{% endblock sidebar %}