dsk52 / board Goto Github PK
View Code? Open in Web Editor NEWDjango practice with KEIJIBAN as a theme.
Django practice with KEIJIBAN as a theme.
保存時に型のエラーが起こる
Boardテーブルにupdate_atのフィールドを追加する。
defaultをnowで設定。以降updateのタイミングでcreate_atではなく、update_atを更新していく。
UpdateViewで作れると思う
フォームは作成ページと同じものを使う
あと、一覧を更新日順にソートするように変えたいよね
Formを設置してコメントを書き込めるようにする
内容としては以下かな
Django、クラスベースビューの機能を組み合わせる ここで見た
今年のはじめの方だから、まだ参考にできると思う
とりあえず、各投稿に対していいねを付けれるようにする
テーブル的には、Boardと同じにしても良い気がするけど、別テーブルで管理してみる
ここだけJSで値飛ばしてJSONで受け取って更新をかける感じにする
前やったけどあんまり覚えてないので思い出す。
dj-static みたいなモジュールか、Whitenoise を使う方法が多かった気がする。
後者でやる。
とりあえず、現状読み込んでるlitのCDNをローカルから配信するように変えてみる。
Nginxとの連携の話も見ておく
現状仮データしか無理なので、板を作成できるフォームを作る。
Boardのモデルを元にCreateViewで作る
バリデーションは一旦置いとく。板が作成できることを優先。
勉強も兼ねて、ログイン必須にする。
以下はログイン必須にする。非ログイン時はアクションボタンやフォームを出さない対応
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.