diff --git a/apps/lists/__init__.py b/apps/lists/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/apps/lists/admin.py b/apps/lists/admin.py deleted file mode 100644 index 8c38f3f..0000000 --- a/apps/lists/admin.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.contrib import admin - -# Register your models here. diff --git a/apps/lists/apps.py b/apps/lists/apps.py deleted file mode 100644 index 6c6766a..0000000 --- a/apps/lists/apps.py +++ /dev/null @@ -1,5 +0,0 @@ -from django.apps import AppConfig - - -class ListsConfig(AppConfig): - name = 'apps.lists' diff --git a/apps/lists/migrations/__init__.py b/apps/lists/migrations/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/apps/lists/models.py b/apps/lists/models.py deleted file mode 100644 index 71a8362..0000000 --- a/apps/lists/models.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.db import models - -# Create your models here. diff --git a/apps/lists/tests.py b/apps/lists/tests.py deleted file mode 100644 index 4092617..0000000 --- a/apps/lists/tests.py +++ /dev/null @@ -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, 'To-Do Lists') - self.assertContains(response, '') - self.assertContains(response, '') diff --git a/apps/lists/views.py b/apps/lists/views.py deleted file mode 100644 index 7a91acb..0000000 --- a/apps/lists/views.py +++ /dev/null @@ -1,4 +0,0 @@ -from django.http import HttpResponse - -def home_page(request): - return HttpResponse('To-Do Lists') diff --git a/core/settings.py b/core/settings.py index e50e818..08d2ec1 100644 --- a/core/settings.py +++ b/core/settings.py @@ -39,7 +39,7 @@ INSTALLED_APPS = [ 'django.contrib.messages', 'django.contrib.staticfiles', # Custom apps - 'apps.lists', + 'apps.dashboard', # Depend apps ] @@ -58,7 +58,7 @@ ROOT_URLCONF = 'core.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [], + 'DIRS': [BASE_DIR / 'templates'], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ @@ -71,6 +71,7 @@ TEMPLATES = [ ] WSGI_APPLICATION = 'core.wsgi.application' +ASGI_APPLICATION = 'core.asgi.application' # Database diff --git a/core/urls.py b/core/urls.py index 18f4a09..2c2b1e1 100644 --- a/core/urls.py +++ b/core/urls.py @@ -1,6 +1,6 @@ from django.contrib import admin from django.urls import path -from apps.lists.views import home_page +from apps.dashboard.views import home_page urlpatterns = [ path('admin/', admin.site.urls),