`Thing collection` not displayed in `admin`


#1

Hi there,

Not sure I have the same problem as here but I can’t find Thing collection in admin panel of Django.

Here is a screenshot

What I did without success:

  • Add admin.site.register(Thing,ThingAdmin) in admin.py

  • Run python manage.py makemigrations without any changes detected

  • Run python manage.py migrate without any changes to apply

Here is the actual code on github.

Could you help me figure out this issue?

Thanks,

Herimanitra,


#2

Hi there!

Can you paste your models.py and admin.py code into pastebin.com and share the link here so I can take a look at your code? :)


#3

admin.py is:

http://pastebin.com/YJY6zwdp

and models.py here:

http://pastebin.com/SJzn3A4z

Herimanitra,


#4

Gah sorry, I totally missed where you linked to the code on Github. Working too much today, brain is mush.

Tried to install your site today and got errors since your views.py has indentation issues: https://github.com/RanaivosonHerimanitra/HelloWebDemo/blob/master/collection/views.py

But the root issue is that you don’t have your app registered in the admin.

Your code: https://github.com/RanaivosonHerimanitra/HelloWebDemo/blob/master/hellowebapp/settings.py
Instructions: https://hellowebapp.com/setup/ (Under “Add your new app to your settings file”)

FYI in case you missed it, I have code for the chapters on GitHub, so you can compare files for differences: https://github.com/hellowebapp/hellowebapp-code/blob/chapter-6/collection/models.py

In any case, hope that helps! Glad I could find the issue.


#5

Oh thank you ,

I totally neglected this part of the setup so I forgot to include collection.

Good luck for the Kickstarter campaign

Herimanitra,