hello world working and Linter

This commit is contained in:
Arnold Dechamps 2024-02-23 04:19:12 +01:00
parent 4d76891d1b
commit 8ca9715ebd
No known key found for this signature in database
GPG key ID: AE66543374E41C89
2 changed files with 4 additions and 3 deletions

View file

@ -38,7 +38,7 @@ INSTALLED_APPS = [
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'admin_extra_buttons', 'admin_extra_buttons',
'tldtester', 'tldtester.apps.TldtesterConfig',
] ]
MIDDLEWARE = [ MIDDLEWARE = [
@ -56,7 +56,7 @@ ROOT_URLCONF = 'tldtest.urls'
TEMPLATES = [ TEMPLATES = [
{ {
'BACKEND': 'django.template.backends.django.DjangoTemplates', 'BACKEND': 'django.template.backends.django.DjangoTemplates',
"DIRS": [BASE_DIR / "templates"], "DIRS": [],
'APP_DIRS': True, 'APP_DIRS': True,
'OPTIONS': { 'OPTIONS': {
'context_processors': [ 'context_processors': [

View file

@ -5,6 +5,7 @@ from django.views.generic import TemplateView
class Index(TemplateView): class Index(TemplateView):
template_name = 'index.html' template_name = 'index.html'
""" """
def handler404(request): def handler404(request):
return render(request, '404.html', status=404) return render(request, '404.html', status=404)
@ -13,4 +14,4 @@ def handler404(request):
def handler500(request): def handler500(request):
return render(request, '500.html', status=500) return render(request, '500.html', status=500)
""" """