I
email = forms.EmailField(required=True)
class Meta:
model = User
fields = ['username', 'password1', 'password2', 'email', ]
class UserUpdateForm(forms.ModelForm):
email = forms.EmailField()
Size: a a a
I
I
DT
I
ОК
DT
I
ДА
<div class="product-item">
{% for item in object_list %}
<div>
{% with item.fieldimages.all|first as imag %}
<img src="{{imag.url}}" />
{% endwith %}
{% endfor %}
DT
<div class="product-item">
{% for item in object_list %}
<div>
{% with item.fieldimages.all|first as imag %}
<img src="{{imag.url}}" />
{% endwith %}
{% endfor %}
AK
python3 manage.py test
RuntimeError: Model class image_storage.rest_api_storage.api_service_storage.models.Image doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
AK
AK
I
DT
I
DT
I
MM
MM
DT