mirror of
https://github.com/Fechin/reference.git
synced 2026-11-21 21:44:45 +03:00
Update django.md
This commit is contained in:
1 parent
0c988af755
commit
543a293600
1 file changed
+2
-2
@@ -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
|
||||
```
|
||||
```
|
||||
Reference in new issue
Block a user