Skip to content

Commit 543a293

Browse files
authored
Update django.md
1 parent 0c988af commit 543a293

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/_posts/django.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ class ArticleForm(ModelForm):
889889

890890
- NOTE: If the form contains a file field, your form MUST contain `enctype="multipart/form-data"`, eg:
891891

892-
```django
892+
```html
893893
<form action="" method="post" enctype="multipart/form-data">
894894
{% csrf_token %}
895895
{{ form.as_p }}
@@ -2202,4 +2202,4 @@ If you change the Nginx server block configuration, test the configuration and t
22022202

22032203
```bash
22042204
sudo nginx -t && sudo systemctl restart nginx
2205-
```
2205+
```

0 commit comments

Comments
 (0)