Skip to content
This repository has been archived by the owner on Nov 25, 2017. It is now read-only.

Removed "mysite" from the "Adding Your Models to the Admin Site" section #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stevencn
Copy link

Within the "Adding Your Models to the Admin Site" section, the code reads
from django.contrib import admin
from mysite.books.models import Publisher, Author, Book
I removed mysite from this statement to read
from django.contrib import admin
from books.models import Publisher, Author, Book
This is due to the fact that "mysite" caused an import error that was corrected by removing "mysite".

Within the "Adding Your Models to the Admin Site" section, the code reads
from django.contrib import admin
from mysite.books.models import Publisher, Author, Book
I removed mysite from this statement to read
from django.contrib import admin
from books.models import Publisher, Author, Book
This is due to the fact that "mysite" caused an import error that was corrected by removing "mysite".
@suhailvs
Copy link

i have update it in my repo. see commit

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants