chore(app): add base app for project management

!12 closes #34
This commit is contained in:
2024-05-27 12:47:38 +09:30
parent 174f66a397
commit f453075d20
7 changed files with 35 additions and 0 deletions

View File

@ -56,6 +56,7 @@ if settings.DEBUG:
# Apps Under Development
path("information/", include("information.urls")),
path("config_management/", include("config_management.urls")),
path("project_management/", include("project_management.urls")),
]
# must be after above

View File

View File

@ -0,0 +1,6 @@
from django.apps import AppConfig
class ProjectManagementConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'project_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 ProjectIndex
app_name = "Project Management"
urlpatterns = [
path('', ProjectIndex.as_view(), name='Projects'),
]

View File

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