From 543a2936003d7ceb1c6af2a1b401c7f875cfeba7 Mon Sep 17 00:00:00 2001 From: Saeid Javadi Date: Mon, 25 Nov 2024 13:00:38 +0330 Subject: [PATCH] Update django.md --- source/_posts/django.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +```