hello world working and Linter
This commit is contained in:
parent
4d76891d1b
commit
8ca9715ebd
|
@ -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': [
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue