LoginSignup
0
1

More than 1 year has passed since last update.

Django個人メモ

Last updated at Posted at 2022-01-04

Django個人メモ

初めての投稿です、至らないところもあるかと思いますが復習と整理も踏まえて書きます。

Djangoに入る前に“フレームワーク“自体の理解

MTVモデル

概要
 ・Model(データベースに格納されているデータ)← DB, Table関連
 ・Template(テンプレートファイルによって定義されたそれぞれのページのデザイン)← HTML, CSS, Javascript関連
 ・View(どのページを表示させるかを決定する処理)← コアとなる関数

データ構造反映

$python manage.py showmigrations (確認)
$python manage.py makemigrations (migrationsファイル作成)
$python manage.py showmigrations(確認)
$python manage.py migrate (反映)
$python manage.py runserver ….でシステムが動くはず

MySQL,SQL

https://qiita.com/knife0125/items/bb095a85d1a5d3c8f706
最低限のSQL

Django逆引き

Template inheritance

extends – Django Template Tags
https://www.geeksforgeeks.org/extends-django-template-tags/

Djangoでの開発 ダイジェスト

中国語資料、個人的に結構まとまってる

Django(框架)
https://www.zhihu.com/topic/19572108/hot
Python Django+SQL+Pandas+Pyecharts自建在线数据分析平台(三)
https://zhuanlan.zhihu.com/p/143369908
Django 教程
https://www.runoob.com/django/django-tutorial.html

日本語化

Django フォーム + Bootstrap 4 で、本格的な「お問い合わせ」フォームを手軽に作成する

Djangoの多対多

番外編MySQL Problem

$sudo apt-get install python3.6-dev libmysqlclient-dev
$sudo apt-get install libsqlclient-dev
$sudo apt-get install -y libmysqlclient-dev
$sudo apt-get install -y default-libmysqlclient-dev
$pip install mysqlclient
$pip install mysql-python
$pip install mysql-connector-python
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1