Modified Title & Tab, updated url for Github, updated url paths for project and started template for views within api application

This commit is contained in:
Michael Roy
2024-05-18 22:04:38 -04:00
parent a333aa8fa4
commit 54e0d6a24c
16 changed files with 24 additions and 26 deletions

View File

@@ -0,0 +1,10 @@
from django.urls import path
from .views import (
Sentry,
OpenAI,
)
urlpatterns = [
path('sentry/', Sentry.as_view(), name='sentry'),
path('openai/', OpenAI.as_view(), name='openai'),
]

View File

@@ -1,3 +1,8 @@
from django.shortcuts import render from django.shortcuts import render
# Create your views here. # Create your views here.
class Sentry:
pass
class OpenAI:
pass

View File

@@ -1,3 +0,0 @@
from django.contrib import admin
# Register your models here.

View File

@@ -1,6 +0,0 @@
from django.apps import AppConfig
class DeepImpactAppConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'deep_impact_app'

View File

@@ -1,3 +0,0 @@
from django.db import models
# Create your models here.

View File

@@ -1,3 +0,0 @@
from django.test import TestCase
# Create your tests here.

View File

@@ -1,3 +0,0 @@
from django.shortcuts import render
# Create your views here.

View File

@@ -9,7 +9,7 @@ https://docs.djangoproject.com/en/5.0/topics/settings/
For the full list of settings and their values, see For the full list of settings and their values, see
https://docs.djangoproject.com/en/5.0/ref/settings/ https://docs.djangoproject.com/en/5.0/ref/settings/
""" """
import os
from pathlib import Path from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'. # Build paths inside the project like this: BASE_DIR / 'subdir'.
@@ -37,6 +37,7 @@ INSTALLED_APPS = [
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'api_app',
] ]
MIDDLEWARE = [ MIDDLEWARE = [

View File

@@ -15,8 +15,9 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
""" """
from django.contrib import admin from django.contrib import admin
from django.urls import path from django.urls import path, include
urlpatterns = [ urlpatterns = [
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
path('api/', include('api_app.urls')),
] ]

View File

@@ -2,9 +2,9 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> <link rel="icon" type="image/" href="/DeepImpact_Logo.jpeg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title> <title>Deep Impact</title>
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 KiB

View File

@@ -19,11 +19,10 @@ function About() {
</ul> </ul>
</div> </div>
<p className='italic m-4'>The Sky Is Falling!</p> <p className='italic m-4'>The Sky Is Falling!</p>
<p className='m-4'>To see learn more about Deep Impact, checkout our <a href='https://github.com/Team-Deep-Impact/Deep-Impact/blob/threats-page/frontend/src/pages/about.jsx' className='underline hover:text-red-900'>GitHub</a>.</p> <p className='m-4'>To see learn more about Deep Impact, checkout our <a href='https://github.com/Team-Deep-Impact/Deep-Impact' className='underline hover:text-red-900'>GitHub</a>.</p>
</div> </div>
</> </>
) )
} }
export default About export default About