chore(app): add base app for config management

!12 closes #35
This commit is contained in:
2024-05-27 12:46:28 +09:30
parent 51e52e69a4
commit 174f66a397
7 changed files with 35 additions and 0 deletions

View File

@ -55,6 +55,7 @@ if settings.DEBUG:
path("__debug__/", include("debug_toolbar.urls"), name='_debug'),
# Apps Under Development
path("information/", include("information.urls")),
path("config_management/", include("config_management.urls")),
]
# must be after above

View File

View File

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

View File

@ -0,0 +1 @@
from django.db import models

View File

@ -0,0 +1,9 @@
from django.urls import path
from .views import ConfigIndex
app_name = "Config Management"
urlpatterns = [
path('', ConfigIndex.as_view(), name='Config Management'),
]

View File

@ -0,0 +1,18 @@
from django.shortcuts import render
from django.views import generic
class ConfigIndex(generic.View):
permission_required = 'itam.view_device'
template_name = 'form.html.j2'
def get(self, request):
context = {}
context['content_title'] = 'Config Management'
return render(request, self.template_name, context)