diff --git a/source/_posts/django.md b/source/_posts/django.md index dc37c91..38841df 100644 --- a/source/_posts/django.md +++ b/source/_posts/django.md @@ -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
{% 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 -``` \ No newline at end of file +```