Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Velotio - HashiCorp Consul Part 2 - Django template for the view that shows MongoDB connection and setup
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link href="" rel="stylesheet">
<body class="bg-dark text-white p-5" style="font-family: Armata">
<div class="p-4 border">
<div class="m-2">
<b>Django Database Connection</b>
<table class="table table-dark">
<th scope="col">#</th>
<th scope="col">Property</th>
<th scope="col">Value</th>
<td>Mongo Hosts</td>
<td>{% for host in mongo_hosts %}{{ host }}<br/>{% endfor %}</td>
<td>Mongo Primary Address</td>
<td>{{ mongo_primary_host }}</td>
<td>Mongo Connected Address</td>
<td>{{ mongo_connected_host }}</td>
<td>Mongo - Is Primary?</td>
<td>{{ mongo_is_primary }}</td>
<td>Mongo - Is Secondary?</td>
<td>{{ mongo_is_secondary }}</td>
<script src="" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment