Skip to content
Snippets Groups Projects
Commit 34ab025d authored by Dorian Lesbre's avatar Dorian Lesbre
Browse files

Added a basic HTML view

parent 978d6c65
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ ROOT_URLCONF = 'interludes.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'DIRS': [os.path.join(BASE_DIR, 'interludes', 'templates')],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
......
<html>
<head>
<title>Site title</title>
</head>
<body>
<p>a paragraph</p>
<p>another paragraph</p>
</body>
</html>
\ No newline at end of file
......@@ -15,7 +15,9 @@ Including another URLconf
"""
from django.contrib import admin
from django.urls import path
from interludes import views
urlpatterns = [
path('admin/', admin.site.urls),
path('', views.home, name = 'home')
]
from django.shortcuts import render
def home(request):
return render(request, 'home.html', {})
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment