From 8ca9715ebdf6c9fac8f21be1f38cd2c3f819d695 Mon Sep 17 00:00:00 2001 From: altf4arnold Date: Fri, 23 Feb 2024 04:19:12 +0100 Subject: [PATCH] hello world working and Linter --- tldtest/settings.py | 4 ++-- tldtest/views.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tldtest/settings.py b/tldtest/settings.py index 13f8445..b36936b 100644 --- a/tldtest/settings.py +++ b/tldtest/settings.py @@ -38,7 +38,7 @@ INSTALLED_APPS = [ 'django.contrib.messages', 'django.contrib.staticfiles', 'admin_extra_buttons', - 'tldtester', + 'tldtester.apps.TldtesterConfig', ] MIDDLEWARE = [ @@ -56,7 +56,7 @@ ROOT_URLCONF = 'tldtest.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - "DIRS": [BASE_DIR / "templates"], + "DIRS": [], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ diff --git a/tldtest/views.py b/tldtest/views.py index 0415afc..8959dc2 100644 --- a/tldtest/views.py +++ b/tldtest/views.py @@ -5,6 +5,7 @@ from django.views.generic import TemplateView class Index(TemplateView): template_name = 'index.html' + """ def handler404(request): return render(request, '404.html', status=404) @@ -13,4 +14,4 @@ def handler404(request): def handler500(request): return render(request, '500.html', status=500) -""" \ No newline at end of file +"""