title: Django 3: AttributeError: 'AdminSite' object has no attribute 'Register'
body: <p>AttributeError: 'AdminSite' object has no attribute 'Register'</p>
  
  <p>when i go to make migrations and open my admin section to add so dummy info and image I receive the error.</p>
  
  <pre><code>admin.site.Register(Bet, BetAdmin)
  </code></pre>
  
  <p>What I have done so far is delete and hit return to see if it was indentation mistake on the class.</p>
  
  <p>I also installed pylint to see more details on errors based on the one suggested answers.</p>
  
  <p><a href="https://stackoverflow.com/questions/45135263/class-has-no-objects-member">Class has no objects member</a></p>
  
  <pre><code>pip install pylint-django
  </code></pre>
  
  <p>then I added to my setttings.json</p>
  
  <pre><code>   {
      "terminal.integrated.shell.windows": "C:\\WINDOWS\\Sysnative\\WindowsPowerShell\\v1.0\\powershell.exe",
      "workbench.colorTheme": "PowerShell ISE",
      "python.pythonPath": "C:\\Users\\taylo\\AppData\\Local\\Programs\\Python\\Python38-32\\python.exe",
      "json.schemas": [
  
      ],
      "python.linting.pylintArgs": [
          "--load-plugins=pylint_django"
      ],
  
      "[python]": {
  
      }
  
  }
  </code></pre>
  
  <p>but it didn't seam to solve anything related to issue.</p>
  
  <p>FYI: I did a bunch of searches and view on stack and but solutions seen where for spelling errors ased on the word being spelled incorrectly with q  like reqister instead of register is and was not spelled wrong.</p>
  
  <p>the full terminal error</p>
  
  <pre><code>(venv) PS C:\Users\taylo\django\pybet_project&gt; python manage.py makemigrations
  Traceback (most recent call last):
    File "manage.py", line 21, in &lt;module&gt;
      main()
    File "manage.py", line 17, in main
      execute_from_command_line(sys.argv)
    File "C:\Users\taylo\django\pybet_project\venv\lib\site-packages\django\core\management\__init__.py", line 401, in execute_from_command_line
      utility.execute()
    File "C:\Users\taylo\django\pybet_project\venv\lib\site-packages\django\core\management\__init__.py", line 377, in execute
      django.setup()
    File "C:\Users\taylo\django\pybet_project\venv\lib\site-packages\django\__init__.py", line 24, in setup
      apps.populate(settings.INSTALLED_APPS)
    File "C:\Users\taylo\django\pybet_project\venv\lib\site-packages\django\apps\registry.py", line 122, in populate
      app_config.ready()
    File "C:\Users\taylo\django\pybet_project\venv\lib\site-packages\django\contrib\admin\apps.py", line 24, in ready
      self.module.autodiscover()
    File "C:\Users\taylo\django\pybet_project\venv\lib\site-packages\django\contrib\admin\__init__.py", line 26, in autodiscover
      autodiscover_modules('admin', register_to=site)
    File "C:\Users\taylo\django\pybet_project\venv\lib\site-packages\django\utils\module_loading.py", line 47, in autodiscover_modules     
      import_module('%s.%s' % (app_config.name, module_to_search))
    File "C:\Users\taylo\AppData\Local\Programs\Python\Python38-32\lib\importlib\__init__.py", line 127, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File "&lt;frozen importlib._bootstrap&gt;", line 1014, in _gcd_import
    File "&lt;frozen importlib._bootstrap&gt;", line 991, in _find_and_load
    File "&lt;frozen importlib._bootstrap&gt;", line 975, in _find_and_load_unlocked
    File "&lt;frozen importlib._bootstrap&gt;", line 671, in _load_unlocked
    File "&lt;frozen importlib._bootstrap_external&gt;", line 783, in exec_module
    File "&lt;frozen importlib._bootstrap&gt;", line 219, in _call_with_frames_removed
    File "C:\Users\taylo\django\pybet_project\bets\admin.py", line 8, in &lt;module&gt;
      admin.site.Register(Bet, BetAdmin)
    File "C:\Users\taylo\django\pybet_project\venv\lib\site-packages\django\utils\functional.py", line 225, in inner
      return func(self._wrapped, *args)
  AttributeError: 'AdminSite' object has no attribute 'Register'
  (venv) PS C:\Users\taylo\django\pybet_project&gt; 
  </code></pre>
  
  <p>admin.py</p>
  
  <pre><code>from django.contrib import admin
  from .models import Bet
  
  
  class BetAdmin(admin.ModelAdmin):
      list_display = {'home_team', 'away_team', 'home_team_odds', 'draw_odds', 'away_team_odds'}
  
  admin.site.Register(Bet, BetAdmin)
  </code></pre>
  
  <p>models.py</p>
  
  <pre><code>from django.db import models
  
  class Bet(models.Model):
      home_team = models.CharField(max_length=255)
      home_team_logo = models.ImageField(upload_to='logos')
      away_team = models.CharField(max_length=255)
      away_team_logo = models.ImageField(upload_to='logos')
      home_team_odds = models.DecimalField(max_digits=3, decimal_places=2)
      draw_odds = models.DecimalField(max_digits=3, decimal_places=2)
      away_team_odds = models.DecimalField(max_digits=3, decimal_places=2)
  
  </code></pre>
  
  <p>urls.py</p>
  
  <pre><code>from django.urls import path
  from . import views
  
  urlpatterns = [
      path('', views.index, name='index'),
      path('new', views.new, name='new')
  ]
  
  </code></pre>
  
  <p>views.py</p>
  
  <pre><code>from django.shortcuts import render
  from .models import Bet
  
  def index(request):
      bets = Bet.objects.all()
      return render(request, 'bets/index.html', {'bets: bets'})
  </code></pre>