@ -217,3 +217,7 @@ if DEBUG:
|
||||
"127.0.0.1",
|
||||
]
|
||||
|
||||
# Apps Under Development
|
||||
INSTALLED_APPS += [
|
||||
'information.apps.InformationConfig',
|
||||
]
|
||||
|
@ -43,4 +43,6 @@ if settings.DEBUG:
|
||||
urlpatterns += [
|
||||
|
||||
path("__debug__/", include("debug_toolbar.urls"), name='_debug'),
|
||||
# Apps Under Development
|
||||
path("information/", include("information.urls")),
|
||||
]
|
||||
|
0
app/information/__init__.py
Normal file
0
app/information/__init__.py
Normal file
6
app/information/apps.py
Normal file
6
app/information/apps.py
Normal file
@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class InformationConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'information'
|
13
app/information/urls.py
Normal file
13
app/information/urls.py
Normal file
@ -0,0 +1,13 @@
|
||||
from django.urls import path
|
||||
|
||||
from . import views
|
||||
from .views import knowledge_base, playbooks
|
||||
|
||||
app_name = "Information"
|
||||
|
||||
urlpatterns = [
|
||||
|
||||
path("kb/", knowledge_base.Index.as_view(), name="Knowledge Base"),
|
||||
path("playbook/", playbooks.Index.as_view(), name="Playbooks"),
|
||||
|
||||
]
|
25
app/information/views/knowledge_base.py
Normal file
25
app/information/views/knowledge_base.py
Normal file
@ -0,0 +1,25 @@
|
||||
import json
|
||||
|
||||
from django.contrib.auth.mixins import PermissionRequiredMixin
|
||||
from django.db.models import Q
|
||||
from django.shortcuts import render
|
||||
from django.views import generic
|
||||
|
||||
from access.mixin import OrganizationPermission
|
||||
|
||||
|
||||
|
||||
class Index(generic.View):
|
||||
|
||||
# permission_required = [
|
||||
# 'itil.view_knowledge_base'
|
||||
# ]
|
||||
|
||||
template_name = 'base.html.j2'
|
||||
|
||||
def get(self, request):
|
||||
context = {}
|
||||
|
||||
context['content_title'] = 'Knowledge Base'
|
||||
|
||||
return render(request, self.template_name, context)
|
25
app/information/views/playbooks.py
Normal file
25
app/information/views/playbooks.py
Normal file
@ -0,0 +1,25 @@
|
||||
import json
|
||||
|
||||
from django.contrib.auth.mixins import PermissionRequiredMixin
|
||||
from django.db.models import Q
|
||||
from django.shortcuts import render
|
||||
from django.views import generic
|
||||
|
||||
from access.mixin import OrganizationPermission
|
||||
|
||||
|
||||
|
||||
class Index(generic.View):
|
||||
|
||||
# permission_required = [
|
||||
# 'itil.view_playbook'
|
||||
# ]
|
||||
|
||||
template_name = 'base.html.j2'
|
||||
|
||||
def get(self, request):
|
||||
context = {}
|
||||
|
||||
context['content_title'] = 'Playbooks'
|
||||
|
||||
return render(request, self.template_name, context)
|
Reference in New Issue
Block a user