adding food logging, phase 0
This commit is contained in:
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class FoodConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'food'
|
||||
@@ -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 %}
|
||||
@@ -0,0 +1,9 @@
|
||||
from django.urls import path
|
||||
|
||||
from . import views
|
||||
|
||||
app_name = 'food'
|
||||
|
||||
urlpatterns = [
|
||||
path('', views.diary, name='diary'),
|
||||
]
|
||||
@@ -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')
|
||||
Reference in New Issue
Block a user