required form field를 위한 model field 설정
https://docs.djangoproject.com/en/3.0/topics/forms/modelforms/#field-types
https://stackoverflow.com/a/27036431
p103 Model EmailField()
p104 null=True , blank=True
p105 model verbose_name option
p106-7 admin.py admin.ModelAdmin을 통해 admin 에서 볼수 있는 model들의 설정을 바꿀수 있다.
p107 admin.py admin.ModelAdmin 를 통해서 admin 화면 customizing이 가능하다.
p120 HttpRequest.META 안에 각종 header정보가 있다.
p124- 126 basic form GET 사용법
p133 basic form POST 작동원리 and 에러
forms.ModelForm customizing하기
p136 forms.Form의 다른 widget으로 바꾸기
p138 forms.Form의 기본 validation 규칙 , 기본값 설정하기
p139 custom validation 설정하기, label바꾸기
p140 field별로 html tag , message 출력하기
p147 공통된 url prefix를 설정하기
p162 wrapper를 이용해 여러 view들에 사전 작업을 처리할수 있다. (ex login wrapper) decorator와 같은 원리 이다.
p163 urls include
p174 template autoescape off 하는 방법
p176 {{data | default:”3 < 2”}} template에서 기본값설정하는데 special character escaped
p256 cookies에 접근하는 법
p258 session 이용
p261 session check
p264 request.user
p265 request.user.is_authenticated()
p277 auth.authenticate() 와 auth.login()와 auth.logout()
p269 login_required decorator
p270 permission_required decorator
user_passes_test()
p271 creating user, set password , check password
- User.objects.create_user(), User.set_password(), User.check_password()
p273 template에서 authentication data 사용하기
django docs Form 기본
django docs ModelForm
Using the Django authentication system
https://docs.djangoproject.com/en/3.0/topics/auth/default/#module-django.contrib.auth.forms
creating form from model
https://docs.djangoproject.com/en/3.0/topics/forms/modelforms/#django.forms.ModelForm
working with form
https://docs.djangoproject.com/en/3.0/topics/forms/
modelform customizing
https://colinkingswood.github.io/Model-Form-Customisation/
customizing UserCreationForm
https://stackoverflow.com/a/5745488
adjusting height with bootstrap
https://www.w3schools.com/bootstrap4/bootstrap_utilities.asp
https://getbootstrap.com/docs/4.0/utilities/sizing/
(input 의 높이를 지정하는 방법으로 percentage사용불가)
PasswordInput() 사용예시
https://www.programcreek.com/python/example/107521/django.forms.PasswordInput
message framework (ontime message to next view)
https://docs.djangoproject.com/en/2.0/ref/contrib/messages/
using authentication system in django
https://docs.djangoproject.com/en/3.0/topics/auth/default/
AuthenticationForm 수정 custom customizing하기
https://stackoverflow.com/a/12333660
AuthenticationForm수정 custom customizing하기
https://stackoverflow.com/a/12333660