Djangoroidの奮闘記

python,django,angularJS1~三十路過ぎたプログラマーの奮闘記

2016-10-16から1日間の記事一覧

Django e-commerce part76 django-filter

django-filterを使ってみる 公式ドキュメント: django-filter — django-filter 0.15.2 documentation まずはpip install pip install django-filter settings/local.pyに設定をかきこむ INSTALLED_APPS = ( ... #third party apps 'django_filters', ... dj…

Django e-commerce part75 UI Update

UIを少し修正 修正に役に立った・知らなかったtips的なもの {% if object_list|length <= 0 %} でobjectの長さを確認できる。

DjangoClass Based ViewのCreateView,UpdateViewとModelFormの組み合わせ

DjangoClass Based ViewのCreateView,UpdateViewとModelFormの組み合わせて使う UpdateViewのform_classに、ModelFormを代入する class ImageUploadForm(forms.ModelForm): class Meta: model = Image fields = ['image'] widgets = { 'image': forms.FileIn…

django registration redux のlocalでの設定

django registration redux 簡単にいうと、django-registrationに、メール認証機能をつけたモジュール。導入もお手軽。 参照にしたサイト 公式サイト: django-registration-redux 1.4 documentation — django-registration-redux 1.4 documentation CodingE…