jsocol / django-adminplus

Easily add custom views to the Django admin.
BSD 3-Clause "New" or "Revised" License
591 stars 79 forks source link

Completely broken on Django 1.9.5 #48

Closed peterfarrell closed 8 years ago

peterfarrell commented 8 years ago

FYI, I followed the installation instructions including the information in #42 on Django 1.9.5 and either it's missing all the core modules, says I have no permissions to do anything in the admin despite being a superuser, or cannot find admin.site.register_view function at all when trying to register a custom function.

pntmatheus commented 8 years ago

Hi Peter, try put these lines in your url.py: admin.site = AdminSitePlus() admin.sites.site = admin.site admin.autodiscover() I have some troubles with the permissions too, I would like to conf some customs permissions, but i dont find a way in adminplus.

peterfarrell commented 8 years ago

@pntmatheus Thanks for the additional hint. I had tried that suggestion as well as it was outlined on:

https://github.com/jsocol/django-adminplus/issues/42#issuecomment-195555272

I couldn't get it to work with what you suggested either.

pntmatheus commented 8 years ago

If you can, share the source files...

bradojevic commented 8 years ago

Hi, @pntmatheus solution worked for me on Django 1.9.5 However, if it help, I'm having exactly the same problem if I use AdminSite instead of AdminSitePlus

urls.py:

from django.contrib.admin.sites import AdminSite
admin.site = AdminSite()
admin.autodiscover()

settings.py:

'django.contrib.admin.apps.SimpleAdminConfig',
# 'django.contrib.admin',

If I run django with this (without adminplus installed) it reports the same 'no permission' error. Can anybody confirm this. It seams there is a problem in Django.

pntmatheus commented 8 years ago

Hi @bradojevic,

Seems your problem is foldrs' permissions. Where are you run the app?

jsocol commented 8 years ago

Consolidating all of these into #42