adding food logging, phase 0

This commit is contained in:
Joren de Graaf
2026-10-03 20:37:04 +02:00
parent c0eda95f26
commit 11ded97ed1
12 changed files with 227 additions and 5 deletions
+1
View File
@@ -0,0 +1 @@
+6
View File
@@ -0,0 +1,6 @@
from django.apps import AppConfig
class FoodConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'food'
+13
View File
@@ -0,0 +1,13 @@
{% extends 'planner/base.html' %}
{% block title %}Food · Tasknest{% endblock %}
{% block content %}
<section class="planner-hero" aria-labelledby="food-heading">
<div>
<p class="eyebrow">Food</p>
<h1 id="food-heading">Food diary</h1>
<p>Food logging is coming soon.</p>
</div>
</section>
{% endblock %}
+9
View File
@@ -0,0 +1,9 @@
from django.urls import path
from . import views
app_name = 'food'
urlpatterns = [
path('', views.diary, name='diary'),
]
+7
View File
@@ -0,0 +1,7 @@
from django.contrib.auth.decorators import login_required
from django.shortcuts import render
@login_required
def diary(request):
return render(request, 'food/diary.html')