Skip to content

Commit

Permalink
Add a placeholder homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
norm committed Jul 27, 2021
1 parent 8fdd04a commit 99e335b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hasworn/settings.py
Expand Up @@ -10,6 +10,7 @@
https://docs.djangoproject.com/en/3.2/ref/settings/
"""

import os
from pathlib import Path

# Build paths inside the project like this: BASE_DIR / 'subdir'.
Expand Down Expand Up @@ -54,7 +55,9 @@
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'DIRS': [
os.path.join(BASE_DIR, 'templates'),
],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
Expand Down
9 changes: 9 additions & 0 deletions hasworn/urls.py
Expand Up @@ -16,6 +16,15 @@
from django.contrib import admin
from django.urls import path

from hasworn.views import Home


urlpatterns = [
path('admin/', admin.site.urls),

path(
'',
Home.as_view(),
name='homepage'
),
]
5 changes: 5 additions & 0 deletions hasworn/views.py
@@ -0,0 +1,5 @@
from django.views.generic import TemplateView


class Home(TemplateView):
template_name = 'home.html'
5 changes: 5 additions & 0 deletions templates/home.html
@@ -0,0 +1,5 @@
<html>
<body>
<h1>hasworn temporary holding page</h1>
</body>
</html>

0 comments on commit 99e335b

Please sign in to comment.