diff --git a/backend/deep_impact_proj/api_app/urls.py b/backend/deep_impact_proj/api_app/urls.py new file mode 100644 index 0000000..ac5d457 --- /dev/null +++ b/backend/deep_impact_proj/api_app/urls.py @@ -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'), +] diff --git a/backend/deep_impact_proj/api_app/views.py b/backend/deep_impact_proj/api_app/views.py index 91ea44a..5542dbc 100644 --- a/backend/deep_impact_proj/api_app/views.py +++ b/backend/deep_impact_proj/api_app/views.py @@ -1,3 +1,8 @@ from django.shortcuts import render # Create your views here. +class Sentry: + pass + +class OpenAI: + pass diff --git a/backend/deep_impact_proj/deep_impact_app/__init__.py b/backend/deep_impact_proj/deep_impact_app/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/backend/deep_impact_proj/deep_impact_app/admin.py b/backend/deep_impact_proj/deep_impact_app/admin.py deleted file mode 100644 index 8c38f3f..0000000 --- a/backend/deep_impact_proj/deep_impact_app/admin.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.contrib import admin - -# Register your models here. diff --git a/backend/deep_impact_proj/deep_impact_app/apps.py b/backend/deep_impact_proj/deep_impact_app/apps.py deleted file mode 100644 index 19beda3..0000000 --- a/backend/deep_impact_proj/deep_impact_app/apps.py +++ /dev/null @@ -1,6 +0,0 @@ -from django.apps import AppConfig - - -class DeepImpactAppConfig(AppConfig): - default_auto_field = 'django.db.models.BigAutoField' - name = 'deep_impact_app' diff --git a/backend/deep_impact_proj/deep_impact_app/migrations/__init__.py b/backend/deep_impact_proj/deep_impact_app/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/backend/deep_impact_proj/deep_impact_app/models.py b/backend/deep_impact_proj/deep_impact_app/models.py deleted file mode 100644 index 71a8362..0000000 --- a/backend/deep_impact_proj/deep_impact_app/models.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.db import models - -# Create your models here. diff --git a/backend/deep_impact_proj/deep_impact_app/tests.py b/backend/deep_impact_proj/deep_impact_app/tests.py deleted file mode 100644 index 7ce503c..0000000 --- a/backend/deep_impact_proj/deep_impact_app/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.test import TestCase - -# Create your tests here. diff --git a/backend/deep_impact_proj/deep_impact_app/urls.py b/backend/deep_impact_proj/deep_impact_app/urls.py deleted file mode 100644 index e69de29..0000000 diff --git a/backend/deep_impact_proj/deep_impact_app/views.py b/backend/deep_impact_proj/deep_impact_app/views.py deleted file mode 100644 index 91ea44a..0000000 --- a/backend/deep_impact_proj/deep_impact_app/views.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.shortcuts import render - -# Create your views here. diff --git a/backend/deep_impact_proj/deep_impact_proj/settings.py b/backend/deep_impact_proj/deep_impact_proj/settings.py index a494ade..db71201 100644 --- a/backend/deep_impact_proj/deep_impact_proj/settings.py +++ b/backend/deep_impact_proj/deep_impact_proj/settings.py @@ -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 = [ diff --git a/backend/deep_impact_proj/deep_impact_proj/urls.py b/backend/deep_impact_proj/deep_impact_proj/urls.py index cb81ab9..4b41197 100644 --- a/backend/deep_impact_proj/deep_impact_proj/urls.py +++ b/backend/deep_impact_proj/deep_impact_proj/urls.py @@ -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')), ] diff --git a/frontend/index.html b/frontend/index.html index 0c589ec..aa5d224 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -2,9 +2,9 @@
- + -The Sky Is Falling!
-To see learn more about Deep Impact, checkout our GitHub.
+To see learn more about Deep Impact, checkout our GitHub.
> ) } - + export default About - \ No newline at end of file