Set up teams app: create app structure, register in settings, and update base template formatting.
This commit is contained in:
@@ -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
0
teams/__init__.py
Normal file
3
teams/admin.py
Normal file
3
teams/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
5
teams/apps.py
Normal file
5
teams/apps.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class TeamsConfig(AppConfig):
|
||||
name = "teams"
|
||||
0
teams/migrations/__init__.py
Normal file
0
teams/migrations/__init__.py
Normal file
3
teams/models.py
Normal file
3
teams/models.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
3
teams/tests.py
Normal file
3
teams/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
@@ -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 %}
|
||||
Reference in New Issue
Block a user