Skip to content

Commit

Permalink
chore(app): add base app for project management
Browse files Browse the repository at this point in the history
!12 closes #34
  • Loading branch information
jon-nfc committed May 27, 2024
1 parent 174f66a commit f453075
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/app/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
# 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
Expand Down
Empty file.
6 changes: 6 additions & 0 deletions app/project_management/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.apps import AppConfig


class ProjectManagementConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'project_management'
Empty file.
1 change: 1 addition & 0 deletions app/project_management/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from django.db import models
9 changes: 9 additions & 0 deletions app/project_management/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from django.urls import path

from .views import ProjectIndex

app_name = "Project Management"
urlpatterns = [
path('', ProjectIndex.as_view(), name='Projects'),

]
18 changes: 18 additions & 0 deletions app/project_management/views.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit f453075

Please sign in to comment.