Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
djangogirlsblog
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lise Gerke
djangogirlsblog
Commits
efdf2028
Commit
efdf2028
authored
4 years ago
by
Lise Gerke
Browse files
Options
Downloads
Patches
Plain Diff
HTML der Sitre geändert
parent
31ff37bf
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
blog/templates/blog/post_list.html
+22
-0
22 additions, 0 deletions
blog/templates/blog/post_list.html
blog/urls.py
+5
-0
5 additions, 0 deletions
blog/urls.py
blog/views.py
+2
-0
2 additions, 0 deletions
blog/views.py
mysite/urls.py
+2
-1
2 additions, 1 deletion
mysite/urls.py
with
31 additions
and
1 deletion
blog/templates/blog/post_list.html
0 → 100644
+
22
−
0
View file @
efdf2028
<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>
This diff is collapsed.
Click to expand it.
blog/urls.py
0 → 100644
+
5
−
0
View file @
efdf2028
from
django.urls
import
path
from
.
import
views
urlpatterns
=
[
path
(
''
,
views
.
post_list
,
name
=
'
post_list
'
),
]
This diff is collapsed.
Click to expand it.
blog/views.py
+
2
−
0
View file @
efdf2028
from
django.shortcuts
import
render
# Create your views here.
def
post_list
(
request
):
return
render
(
request
,
'
blog/post_list.html
'
,
{})
This diff is collapsed.
Click to expand it.
mysite/urls.py
+
2
−
1
View file @
efdf2028
...
...
@@ -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
'
)),
]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment