Djangoプロジェクトの初期設定を追加。環境変数に基づく設定をsettings.pyに実装し、ASGIおよびWSGI設定ファイルを作成。expensesアプリを追加し、基本的なURLルーティングとテンプレートを整備。作業ログをdiary.mdに追記。

This commit is contained in:
president
2025-12-19 15:30:38 +09:00
parent bfca4ee185
commit 5fc2a31f50
22 changed files with 379 additions and 7 deletions

View File

@@ -0,0 +1,17 @@
{% extends 'base.html' %}
{% block title %}CSV取込{% endblock %}
{% block content %}
<section>
<h2>CSV取込</h2>
<div>
<p>ここにDrag & Dropエリアを配置予定。</p>
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
<input type="file" name="csv_file">
<button type="submit">アップロード</button>
</form>
</div>
</section>
{% endblock %}

View File

@@ -0,0 +1,27 @@
{% extends 'base.html' %}
{% block title %}明細編集{% endblock %}
{% block content %}
<section>
<h2>明細編集</h2>
<table>
<thead>
<tr>
<th>利用日</th>
<th>利用先</th>
<th>金額</th>
<th>店舗区分</th>
<th>経費区分</th>
<th>会社/家計</th>
<th>備考</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="7">データはここに表示されます。</td>
</tr>
</tbody>
</table>
</section>
{% endblock %}

View File

@@ -0,0 +1,27 @@
{% extends 'base.html' %}
{% block title %}月次レポート{% endblock %}
{% block content %}
<section>
<h2>月次レポート</h2>
<form method="get">
<label>
年月
<input type="month" name="target_month">
</label>
<button type="submit">表示</button>
</form>
<div>
<h3>店舗別合計</h3>
<p>集計結果をここに表示。</p>
</div>
<div>
<h3>経費区分別合計</h3>
<p>集計結果をここに表示。</p>
</div>
<div>
<p>未分類件数の警告をここに表示。</p>
</div>
</section>
{% endblock %}

View File

@@ -0,0 +1,17 @@
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>月次レポートPDF</title>
<style>
body { font-family: sans-serif; }
h1, h2 { margin: 0 0 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid #333; padding: 6px; }
</style>
</head>
<body>
<h1>月次レポート</h1>
<p>PDF出力用テンプレートです。</p>
</body>
</html>