Skip to content

Commit

Permalink
tested adminlte3 successfuly and removed it
Browse files Browse the repository at this point in the history
  • Loading branch information
4darsh-Dev committed Feb 12, 2024
1 parent 3ba0b15 commit bf59411
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
7 changes: 7 additions & 0 deletions api/cogniguard/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,14 @@
# Application definition

INSTALLED_APPS = [
'customadmin.apps.CustomadminConfig',
'mlApi.apps.MlapiConfig',
'home.apps.HomeConfig',

'rest_framework',
'corsheaders',
# 'adminlte3',
# 'adminlte3_theme',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
Expand Down Expand Up @@ -160,4 +163,8 @@

]

# for staticfiles

STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')


7 changes: 7 additions & 0 deletions api/cogniguard/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,16 @@
"""
from django.contrib import admin
from django.urls import path,include
from django.views.generic import RedirectView

# Admin panel customization
admin.site.site_header = "CogniGuard Admin"
admin.site.site_title = "CogniGuard Admin Portal"


urlpatterns = [
path('admin/', admin.site.urls),
path("logout/", RedirectView.as_view(url="/admin/logout/")),
path("", include("home.urls")),
path("api/", include("mlApi.urls")),
]
15 changes: 8 additions & 7 deletions api/mlApi/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,14 @@ class MessageListView(generics.ListAPIView):
## You need to ensure that it doesn't call the dpData function if the dpCond is False

# Fetching urls from model
dpUrls = DpRequest.objects.all()
urlLen = len(dpUrls)
myDpUrl = dpUrls[urlLen-1].url
print(dpUrls)
myOutput = dpData(myDpUrl)
print(myOutput)
dpCond = False
# dpUrls = DpRequest.objects.all()
# urlLen = len(dpUrls)
# myDpUrl = dpUrls[urlLen-1].url
# print(dpUrls)
# myOutput = dpData(myDpUrl)
# print(myOutput)
# dpCond = False




Expand Down

0 comments on commit bf59411

Please sign in to comment.