refactored homepage to incl. template structure in root dir; renamed lists app to dashboard & renamed paths in linked py files accordingly (e.g., apps.dashboard.apps, .views; core.settings)

This commit is contained in:
Disco DeDisco
2025-12-30 22:05:33 -05:00
parent f267dd98ae
commit 394d46c718
9 changed files with 4 additions and 26 deletions

View File

View File

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

View File

@@ -1,5 +0,0 @@
from django.apps import AppConfig
class ListsConfig(AppConfig):
name = 'apps.lists'

View File

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

View File

@@ -1,8 +0,0 @@
from django.test import TestCase
class HomePageTest(TestCase):
def test_home_page_returns_correct_html(self):
response = self.client.get('/')
self.assertContains(response, '<title>To-Do Lists</title>')
self.assertContains(response, '<html>')
self.assertContains(response, '</html>')

View File

@@ -1,4 +0,0 @@
from django.http import HttpResponse
def home_page(request):
return HttpResponse('<html><title>To-Do Lists</title></html>')