title: get request in django?
body: <p>I have problem with django request.I dont know. I tried to do everything, but I got
  'blog' object has no attribute 'get'. I want to do mini blog on my website,but it isnt working now. I would like to get all objects from database.(Sorry,If I did something wrong,I am beginner in django and tried to functions for my website) :)</p>
  <p>models.py</p>
  <pre><code>from django.db import models
  
  # Create your models here.
  
  CHOOSE =[
      ('Usual','Обычный тариф'),
      ('Premium','Премиум тариф'),
      ('Prise','Аукционный')
  ]
  
  
  class VDSTARIFS( models.Model):
      id = models.CharField(max_length=40, primary_key= True,serialize=True)
      name = models.CharField(max_length=20, verbose_name = 'Цены')
      choosen = models.CharField(max_length= 20, choices = CHOOSE, verbose_name = 'Тариф', help_text='Выбор тарифного плана.')
      title = models.CharField(max_length= 15)
     
     
      def __str__(self):
          return str(self.title)
  
  class blog(models.Model):
      id = models.CharField(max_length=40, primary_key= True,serialize=True)
      message = models.TextField( verbose_name= 'Сообщение блога')
      titleblog = models.CharField(max_length=50, verbose_name = 'Название')
      img = models.ImageField(upload_to = 'admin/', verbose_name= 'Картинка' )
  
  
      def __str__(self):
          return str(self.titleblog)
      
      def get_all_objects(self):  ##maybe I have troubles with it.
          queryset = self.__class__.objects.all()
          
  
  </code></pre>
  <p>blog.html</p>
  <pre><code>{% csrftoken %}
  {% for item in message %}
  
  {% endfor %}
  </code></pre>
  <p>views.py</p>
  <pre><code>from django.shortcuts import render
  from django.http import HttpResponse
  from django.shortcuts import render
  from django.http import HttpResponseRedirect
  import os
  from polls.models import VDSTARIFS
  from polls.models import blog
  from django.template.loader import render_to_string
  def index_view(request):
      #return HttpResponse(&quot;&lt;h1&gt;Hello&lt;/h1&gt;&quot;)
       return render(request, &quot;home.html&quot;, {})
  def about(request):
       return render(request, &quot;about.html&quot;, {})
  def minecraft(request):
       return render(request, &quot;minecraft.html&quot;,{})
  
  def vds(request):
      HTML_STRING = render_to_string(&quot;vds.html&quot;, context = context1)
      return HttpResponse(HTML_STRING)
  try:
      VDS1 = VDSTARIFS.objects.get(id=0)
      name = VDS1.name
  except VDSTARIFS.DoesNotExist:
      VDS1 = None
  context1 = {
      'name':name,
      'prise':VDS1,
  }
  
  def messagesblog(request,self): 
      HTML_STRING = render_to_string('blog.html')
      return HttpResponse(HTML_STRING)
  
  </code></pre>
  <p>urls.py</p>
  <pre><code>from django.contrib import admin
  from django.urls import path
  from polls import views
  from django.conf import settings
  from django.conf.urls.static import static
  urlpatterns = [
      path('admin/', admin.site.urls),
      path('', views.index_view, name='home'),
      path('vds', views.vds, name='vds' ),
      path('minecraft', views.minecraft, name='minecraft' ),
      path('about', views.about, name='about'),
      path('blog', views.blog, name='blog')
  ]
  
  </code></pre>