Django Multiple AdminSite NoReverseMatch from second AdminSite instance -


i having odd issue multiple adminsites.

i have 2 admin sites. one, unicorn_admin.site, , default django.contrib.admin.site.

some apps give me noreversematch error when attempting admin reverse urls. consider following:

this same template used both admin site instances. code 100% same.

{% url 'admin:packingslips_packingslipformat_changelist' %} {# noreversematch /unicorn/ okay /b/ #} 

i'm under impression perhaps admin namespace set active admin automatically, though i've named second admin unicorn_admin, while rendering unicorn_admin view, namespace admin set unicorn_admin instance?

any ideas appreciated.

unicorn_admin.py

site = adminsite(name='unicorn_admin') 

root urlconf

(r'^unicorn/', include(unicorn_admin.site.urls)), (r'^b/', include(admin.site.urls)),  # direct link default admin panel 

use namespaces add few copies of same urlconf (in case - 2 admin sites). in comments found 2 ways different namespaces different admin sites.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -