i created a superuser account , but when I log in with it , i can't edit any of the installed applications !
how can I grant permissions for this user to allow editing applications ??
i created a superuser account , but when I log in with it , i can't edit any of the installed applications !
how can I grant permissions for this user to allow editing applications ??
Found this info useful in this context.
So simply replace django.contrib.admin with django.contrib.admin.apps.SimpleAdminConfig in installed apps.
from adminplus.sites import AdminSitePlus
#Add this line.
admin.site = AdminSitePlus()
admin.autodiscover() # automatic autodiscover should be turned off in settings
I had this problem happen upgrading from Django 1.6 -> 1.8. The solution for me turned out to be simply removing admin.site = AdminSitePlus()
from the top of my urls.py. So, this:
admin.site = AdminSitePlus()
admin.autodiscover()
became this:
admin.autodiscover()
Have you created admin.py
files for all your apps, registered the models, and called admin.site.register()
in urls.py?