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

Moved home.html template to home app

parent f660ae19
No related branches found
No related tags found
No related merge requests found
{% load static %}
<!doctype html>
<html lang=fr>
<head>
<title>Site title</title>
<meta charset="utf-8">
<link rel="stylesheet" href="{% static 'css/style.css' %}">
</head>
<body>
<h1>A Title</h1>
<p>a paragraph</p>
<p>another paragraph</p>
</body>
</html>
\ No newline at end of file
from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name = 'home'),
]
\ No newline at end of file
from django.shortcuts import render from django.shortcuts import render
# Create your views here. def home(request):
return render(request, 'home.html', {})
\ No newline at end of file
<html>
<head>
<title>Site title</title>
</head>
<body>
<p>a paragraph</p>
<p>another paragraph</p>
</body>
</html>
\ No newline at end of file
...@@ -14,10 +14,9 @@ Including another URLconf ...@@ -14,10 +14,9 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
""" """
from django.contrib import admin from django.contrib import admin
from django.urls import path from django.urls import path, include
from interludes import views
urlpatterns = [ urlpatterns = [
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
path('', views.home, name = 'home') path('', include('home.urls')),
] ]
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