Translations cause AdminSite and auth models trouble
|Reported by:||elwaywitvac||Owned by:||nobody|
|Severity:||Keywords:||auth adminsite bug translations|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
This is a horrifically specific bug, so I mostly post this as a warning.
IF you have a custom "siteadmin" application that registers an AdminSite within the _init_.py which imports the django.contrib.auth.admin AND is labeled in INSTALLED_APPS as 'project.app_name', you will not be able to run the server.
However, if it isn't within init or just installed as app_name you're fine. That was a fun hour...
I'm attaching a broken project, just try to run the test server.
Things of note:
# urls.py from siteadmin import my_site urlpatterns = patterns('', (r'^admin/(.*)/', my_site.root), ) # settings.py INSTALLED_APPS = ( 'adminsitebug.siteadmin'. 'django.contrib.admin', 'django.contrib.auth', ...
Change History (3)
Changed 8 years ago by elwaywitvac
comment:1 Changed 8 years ago by garcia_marc
- Component changed from Translations to django.contrib.admin
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset