Django: AttributeError: 'AdminSite' object has no attribute 'reqister'

Question:

So I am starting with Django and I am working on the Django tutorial-project, that includes a poll application. The tutorial gave me the Code:
from django.contrib import admin

from .models import Question

admin.site.register(Question)

But when I add this to my code and try it out it gives me the error:

AttributeError: 'AdminSite' object has no attribute 'reqister'

My admin.py file looks exactly like this and without this code everything is running fine

Asked By: KaeseKuchenDEV

||

Answers:

The correct method name is register, you typed reqister.

Answered By: Char

So I am starting with Django and I am working on the Django tutorial-project, that includes a poll application. The tutorial gave me the Code: from django.contrib import admin
from django.contrib import admin
from . models import application

Register your models here.

admin.site.application(application)

AttributeError: ‘AdminSite’ object has no attribute ‘application’this error came

Answered By: Rajesh S
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.