diff --git a/blog/__pycache__/models.cpython-310.pyc b/blog/__pycache__/models.cpython-310.pyc index 5a64af2..dd9a52f 100644 Binary files a/blog/__pycache__/models.cpython-310.pyc and b/blog/__pycache__/models.cpython-310.pyc differ diff --git a/blog/__pycache__/urls.cpython-310.pyc b/blog/__pycache__/urls.cpython-310.pyc index 7a0e5dc..304c847 100644 Binary files a/blog/__pycache__/urls.cpython-310.pyc and b/blog/__pycache__/urls.cpython-310.pyc differ diff --git a/blog/__pycache__/views.cpython-310.pyc b/blog/__pycache__/views.cpython-310.pyc index c8b37f5..95a5985 100644 Binary files a/blog/__pycache__/views.cpython-310.pyc and b/blog/__pycache__/views.cpython-310.pyc differ diff --git a/blog/views.py b/blog/views.py index ee4f9ae..18ae431 100644 --- a/blog/views.py +++ b/blog/views.py @@ -40,7 +40,6 @@ def news(request): class BlogDetailView(DetailView): model = Blog template_name = 'blog/blogDetail.html' - context_object_name = 'objects' class BlogCreateView(LoginRequiredMixin, CreateView): diff --git a/templates/blog/blogDetail.html b/templates/blog/blogDetail.html index 8555637..bcbc331 100644 --- a/templates/blog/blogDetail.html +++ b/templates/blog/blogDetail.html @@ -4,17 +4,15 @@ {% load markdown_extras %}
- {% for object in objects %}
-
{{ object.title | markdown | safe }}
+

{{ object.title | markdown | safe }}

{{ object.content | markdown | safe }}

- {% endfor %}
diff --git a/templates/blog/home.html b/templates/blog/home.html index f9051f3..beb81e7 100644 --- a/templates/blog/home.html +++ b/templates/blog/home.html @@ -17,7 +17,7 @@
-
{{ post.title }} @{{ post.author }}
+

{{ post.title }}

{{ post.content | markdown | safe }}

diff --git a/users/__pycache__/urls.cpython-310.pyc b/users/__pycache__/urls.cpython-310.pyc index f0cf92c..a9bdad2 100644 Binary files a/users/__pycache__/urls.cpython-310.pyc and b/users/__pycache__/urls.cpython-310.pyc differ diff --git a/users/__pycache__/views.cpython-310.pyc b/users/__pycache__/views.cpython-310.pyc index 1937d28..70e8987 100644 Binary files a/users/__pycache__/views.cpython-310.pyc and b/users/__pycache__/views.cpython-310.pyc differ