@ -55,6 +55,7 @@ if settings.DEBUG:
|
|||||||
path("__debug__/", include("debug_toolbar.urls"), name='_debug'),
|
path("__debug__/", include("debug_toolbar.urls"), name='_debug'),
|
||||||
# Apps Under Development
|
# Apps Under Development
|
||||||
path("information/", include("information.urls")),
|
path("information/", include("information.urls")),
|
||||||
|
path("config_management/", include("config_management.urls")),
|
||||||
]
|
]
|
||||||
|
|
||||||
# must be after above
|
# must be after above
|
||||||
|
0
app/config_management/__init__.py
Normal file
0
app/config_management/__init__.py
Normal file
6
app/config_management/apps.py
Normal file
6
app/config_management/apps.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
from django.apps import AppConfig
|
||||||
|
|
||||||
|
|
||||||
|
class ConfigManagementConfig(AppConfig):
|
||||||
|
default_auto_field = 'django.db.models.BigAutoField'
|
||||||
|
name = 'config_management'
|
0
app/config_management/migrations/__init__.py
Normal file
0
app/config_management/migrations/__init__.py
Normal file
1
app/config_management/models.py
Normal file
1
app/config_management/models.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
from django.db import models
|
9
app/config_management/urls.py
Normal file
9
app/config_management/urls.py
Normal 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'),
|
||||||
|
|
||||||
|
]
|
18
app/config_management/views.py
Normal file
18
app/config_management/views.py
Normal 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)
|
Reference in New Issue
Block a user