Merge pull request #9 from Team-Deep-Impact/api_app

Modified Title & Tab, updated url for Github, updated url paths for p…
This commit is contained in:
Jordan Yamada
2024-05-18 21:10:51 -05:00
committed by GitHub
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
# 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
https://docs.djangoproject.com/en/5.0/ref/settings/
"""
import os
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
@@ -37,6 +37,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'api_app',
]
MIDDLEWARE = [

View File

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

View File

@@ -2,9 +2,9 @@
<html lang="en">
<head>
<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" />
<title>Vite + React</title>
<title>Deep Impact</title>
</head>
<body>
<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>
</div>
<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>
</>
)
}
export default About