serve up a blank /
This commit is contained in:
parent
51edb54ed7
commit
46754d6979
|
@ -59,7 +59,9 @@ ROOT_URLCONF = 'hitomi.urls'
|
|||
TEMPLATES = [
|
||||
{
|
||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||
'DIRS': [],
|
||||
'DIRS': [
|
||||
os.path.join(BASE_DIR, 'templates'),
|
||||
],
|
||||
'APP_DIRS': True,
|
||||
'OPTIONS': {
|
||||
'context_processors': [
|
||||
|
|
|
@ -16,6 +16,9 @@ Including another URLconf
|
|||
from django.contrib import admin
|
||||
from django.urls import path
|
||||
|
||||
from hitomi.views import IndexView
|
||||
|
||||
urlpatterns = [
|
||||
path('', IndexView.as_view(), name='index'),
|
||||
path('admin/', admin.site.urls),
|
||||
]
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
"""Views for miscellaneous site stuff."""
|
||||
from django.views.generic import TemplateView
|
||||
|
||||
|
||||
class IndexView(TemplateView):
|
||||
"""Serve a very basic index page."""
|
||||
|
||||
template_name = 'index.html'
|
Loading…
Reference in New Issue