You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Why is '.models' in the documentation?
##polls/admin.py
from django.contrib import admin
from .models import Question
admin.site.register(Question)
jorr...@gmail.com
unread,
Jan 17, 2017, 12:00:40 PM1/17/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Because you need to import the Question model from the models.py file before you can register it in the admin. "from .models import X" means "import X from the file models which is in the same directory as the current file".