From f1eb3bccbd2cd45c79efdd1abc0f4d1280d7b759 Mon Sep 17 00:00:00 2001 From: tranngoctu63599 Date: Tue, 5 Nov 2019 15:20:59 +0100 Subject: [PATCH] add new project --- .idea/vcs.xml | 6 ++++++ posts/views.py | 2 +- templates/base.html | 17 +++++++++++++++++ templates/posts/index.html | 34 ++++++++++++++++++++++++++++++++++ 4 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 .idea/vcs.xml create mode 100644 templates/base.html create mode 100644 templates/posts/index.html diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/posts/views.py b/posts/views.py index 67693d9..03b1a9e 100644 --- a/posts/views.py +++ b/posts/views.py @@ -6,5 +6,5 @@ from django.http import HttpResponse def post(request): - return HttpResponse("test") + return render(request, "posts/index.html") diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..9bb4499 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,17 @@ + + + + + + + {% block title %} Platzhalter {% endblock %} + + +{% block content %} Platzhalter {% endblock %} + + + + + + + \ No newline at end of file diff --git a/templates/posts/index.html b/templates/posts/index.html new file mode 100644 index 0000000..40fa004 --- /dev/null +++ b/templates/posts/index.html @@ -0,0 +1,34 @@ +{% extends 'base.html' %} + +{% block title %} +Index +{% endblock %} + +{% block content %} + + + + +
+
+

Jumbotron Test

+

My Jumbotron test

+
+

This is some text.

+

This is another text.

+
+{% endblock %}