Profile

    django 19. Profileapp 구현 시작

    DB 반영하기 생성한 model 마이그레이션(migration)해서 db에 반영하기 views.py from django.shortcuts import render # Create your views here. from django.urls import reverse_lazy from django.views.generic import CreateView from profileapp.forms import ProfileCreationForm from profileapp.models import Profile class ProfileCreateView(CreateView): model = Profile context_object_name = 'target_profile' form_class = Profile..