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:
@@ -1,3 +0,0 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
@@ -1,5 +0,0 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class ListsConfig(AppConfig):
|
||||
name = 'apps.lists'
|
||||
@@ -1,3 +0,0 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
@@ -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>')
|
||||
@@ -1,4 +0,0 @@
|
||||
from django.http import HttpResponse
|
||||
|
||||
def home_page(request):
|
||||
return HttpResponse('<html><title>To-Do Lists</title></html>')
|
||||
Reference in New Issue
Block a user