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 %}