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
# 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')),
]