@@ -0,0 +1,6 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<project version="4"> | |||
<component name="VcsDirectoryMappings"> | |||
<mapping directory="$PROJECT_DIR$" vcs="Git" /> | |||
</component> | |||
</project> |
@@ -6,5 +6,5 @@ from django.http import HttpResponse | |||
def post(request): | |||
return HttpResponse("test") | |||
return render(request, "posts/index.html") | |||
@@ -0,0 +1,17 @@ | |||
<!DOCTYPE html> | |||
<html lang="en"> | |||
<head> | |||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> | |||
<meta charset="UTF-8"> | |||
<title>{% block title %} Platzhalter {% endblock %}</title> | |||
</head> | |||
<body> | |||
{% block content %} Platzhalter {% endblock %} | |||
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> | |||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script> | |||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script> | |||
</body> | |||
</html> |
@@ -0,0 +1,34 @@ | |||
{% extends 'base.html' %} | |||
{% block title %} | |||
Index | |||
{% endblock %} | |||
{% block content %} | |||
<nav class="navbar navbar-default"> | |||
<div class="container-fluid"> | |||
<div class="navbar-header"> | |||
<a class="navbar-brand" href="https://www.th-nuernberg.de/fakultaeten/efi/">Efi</a> | |||
<a class="navbar-brand" href="https://www.google.de">Google</a> | |||
<a class="navbar-brand" href="/posts">Home</a> | |||
</div> | |||
<ul class="nav navbar-nav"> | |||
<li class="active"><a href="#">Home</a></li> | |||
<li><a href="/posts">Page 1</a></li> | |||
<li><a href="">Page 2</a></li> | |||
<li><a href="h">Page 3</a></li> | |||
</ul> | |||
</div> | |||
</nav> | |||
<div class="container"> | |||
<div class="jumbotron"> | |||
<h1>Jumbotron Test</h1> | |||
<p>My Jumbotron test</p> | |||
</div> | |||
<p>This is some text.</p> | |||
<p>This is another text.</p> | |||
</div> | |||
{% endblock %} |