Merge branch 'master' of git.incorporeal.org:bss/hitomi

This commit is contained in:
Brian S. Stephan 2018-01-10 14:55:59 -06:00
commit 80d0fd1263
4 changed files with 14 additions and 1 deletions

View File

@ -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': [

View File

@ -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),
]

8
hitomi/views.py Normal file
View File

@ -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'

0
templates/index.html Normal file
View File