tn
Size: a a a
tn
DO
NC
DO
NC
DO
DO
Please enter the correct myshopify domain and password for a staff account. Note that both fields may be case-sensitive.
NC
Please enter the correct myshopify domain and password for a staff account. Note that both fields may be case-sensitive.
DO
NC
DO
DO
DO
NC
OC
class RecipeUpdate(View):почему если в методе post в атрибутах формы явно не указывать request.post и request.files то джанго не видит что форма заполнена?
def get(self, request, slug):
recipe = Recipe.objects.get(slug__iexact=slug)
bound_form = RecipeForm(instance=recipe)
context = {'recipe_form':bound_form}
return render(request, 'recipe-edit.html' , context)
def post(self, request, slug):
recipe = Recipe.objects.get(slug__iexact=slug)
bound_form = RecipeForm(request.POST, request.FILES, instance=recipe)
context = {'recipe_form':bound_form}
NC
class RecipeUpdate(View):почему если в методе post в атрибутах формы явно не указывать request.post и request.files то джанго не видит что форма заполнена?
def get(self, request, slug):
recipe = Recipe.objects.get(slug__iexact=slug)
bound_form = RecipeForm(instance=recipe)
context = {'recipe_form':bound_form}
return render(request, 'recipe-edit.html' , context)
def post(self, request, slug):
recipe = Recipe.objects.get(slug__iexact=slug)
bound_form = RecipeForm(request.POST, request.FILES, instance=recipe)
context = {'recipe_form':bound_form}
OC
DO
M
OC