Merge branch 'master' of git.incorporeal.org:bss/hitomi
This commit is contained in:
commit
80d0fd1263
@ -59,7 +59,9 @@ ROOT_URLCONF = 'hitomi.urls'
|
|||||||
TEMPLATES = [
|
TEMPLATES = [
|
||||||
{
|
{
|
||||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||||
'DIRS': [],
|
'DIRS': [
|
||||||
|
os.path.join(BASE_DIR, 'templates'),
|
||||||
|
],
|
||||||
'APP_DIRS': True,
|
'APP_DIRS': True,
|
||||||
'OPTIONS': {
|
'OPTIONS': {
|
||||||
'context_processors': [
|
'context_processors': [
|
||||||
|
@ -16,6 +16,9 @@ Including another URLconf
|
|||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from django.urls import path
|
from django.urls import path
|
||||||
|
|
||||||
|
from hitomi.views import IndexView
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
|
path('', IndexView.as_view(), name='index'),
|
||||||
path('admin/', admin.site.urls),
|
path('admin/', admin.site.urls),
|
||||||
]
|
]
|
||||||
|
8
hitomi/views.py
Normal file
8
hitomi/views.py
Normal 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
0
templates/index.html
Normal file
Loading…
x
Reference in New Issue
Block a user