Closed peterfarrell closed 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.
@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.
If you can, share the source files...
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.
Hi @bradojevic,
Seems your problem is foldrs' permissions. Where are you run the app?
Consolidating all of these into #42
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.