Skip to content
Snippets Groups Projects
Commit efdf2028 authored by Lise Gerke's avatar Lise Gerke
Browse files

HTML der Sitre geändert

parent 31ff37bf
No related branches found
No related tags found
No related merge requests found
<html>
<head>
<title>Lises blog</title>
</head>
<body>
<div>
<h1><a href="/">Lises Blog</h1>
</div>
<div>
<p>published: 27.11.2020, 12:59</p>
<h2><a href="">My first post</a></h2>
<p>Hallooo, ich bin ein Text. Es gibt nichts Wichtiges zu sagen</p>
</div>
<div>
<p>published: irgendwann in 2020, 12:56</p>
<h2><a href="">Ein toller Post</a></h2>
<p>Dies ist ein weiterer Text. Es gibt immernoch nichts zu sagen</p>
</div>
</body>
</html>
from django.urls import path
from . import views
urlpatterns = [
path('', views.post_list, name='post_list'),
]
from django.shortcuts import render
# Create your views here.
def post_list(request):
return render(request, 'blog/post_list.html', {})
......@@ -14,8 +14,9 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('blog.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