Phase 0: Django-Grundgerüst, Docker und Konzept v0.2
- Django 5.2 LTS mit Apps inventar, topologie, export, scanner - Konfiguration über .env (Vorlage .env.example), SQLite in data/ - Login und geschützte Startseite mit Bootstrap 5 (lokal) - Dockerfile, docker-compose.yml, Entrypoint (migrate, collectstatic) - README/AUFBAUPLAN: offene Punkte 1, 2, 4, 7 geklärt Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4473523aab
commit
15b6ba2bde
46 files changed
+507
-15
No files matched your search
@@ -0,0 +1,29 @@
|
||||
{% load static %}<!doctype html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{% block title %}Netzwerk Planer{% endblock %}</title>
|
||||
<link rel="stylesheet" href="{% static 'vendor/bootstrap/bootstrap.min.css' %}">
|
||||
</head>
|
||||
<body class="bg-body-tertiary">
|
||||
<nav class="navbar navbar-expand bg-dark" data-bs-theme="dark">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="{% url 'start' %}">Netzwerk Planer</a>
|
||||
{% if user.is_authenticated %}
|
||||
<div class="navbar-nav ms-auto align-items-center">
|
||||
<a class="nav-link" href="{% url 'admin:index' %}">Admin</a>
|
||||
<form method="post" action="{% url 'logout' %}" class="ms-2">
|
||||
{% csrf_token %}
|
||||
<button type="submit" class="btn btn-sm btn-outline-light">Abmelden ({{ user.username }})</button>
|
||||
</form>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</nav>
|
||||
<main class="container py-4">
|
||||
{% block content %}{% endblock %}
|
||||
</main>
|
||||
<script src="{% static 'vendor/bootstrap/bootstrap.bundle.min.js' %}"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user