Update django.md

This commit is contained in:
Saeid Javadi authored and GitHub committed 2024-11-25 13:00:38 +03:30
1 parent 0c988af755
commit 543a293600
1 file changed
+2 -2
+2 -2
View File
@@ -889,7 +889,7 @@ class ArticleForm(ModelForm):
- NOTE: If the form contains a file field, your form MUST contain `enctype="multipart/form-data"`, eg:
```django
```html
<form action="" method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
@@ -2202,4 +2202,4 @@ If you change the Nginx server block configuration, test the configuration and t
```bash
sudo nginx -t && sudo systemctl restart nginx
```
```