1👍
It should wrapped inside a admin.site.admin_view.
from django.contrib.admin.site import admin_view
url(r'^admin/dummyfx', admin_view('dummy.views.dummyfx')),
0👍
You should use user_passes_test decorator for your view user_passes_test Docs
Something like that:
@user_passes_test(lambda u: u.is_superuser)
def my_view(request):
...................
....................
- [Answer]-Removing(unregistering) a section from django admin page
- [Answer]-Django passing parameter as a string
- [Answer]-Django template filter keeps giving "unsupported operand type"
Source:stackexchange.com