Wednesday, February 22, 2017

Django official tutorial part 2 problem - model won't show on admin site

Hi there,

I've posted another topic but it seems to have gotten lost somehow. Not sure if there's approval needed or something.

Anyways - I got stuck in this part of the tutorial, and I've tried a few things to no avail - I can't seem to see the model in question (called Question) in my admin site:

-Registered my app in the admin.py file.
-Added it to INSTALLED_APPS in settings.py in my project folder.
-Ran python manage.py makemigrations & python manage.py migrate without any changes (btw, for future readers - that's the new >1.8 incarnation of syncdb, I believe).
-Made sure the user I'm signing in with has superuser priviliges (as per this answer).
-Restarted my nginx.

Thoughts?

-T

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/efeff828-13d0-469d-ab94-4515383a7240%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment