#9127: admin.autodiscover() fails in certain structures
------------------------------------------------+---------------------------
Reporter: [EMAIL PROTECTED] | Owner: nobody
Status: new | Milestone: post-1.0
Component: django.contrib.admin | Version: SVN
Keywords: autodiscover, fails, admin, folder | Stage: Unreviewed
Has_patch: 0 |
------------------------------------------------+---------------------------
Take the following structure:
'''projectfolder
-> modules
-> app1
admin/
admin.py
-> app2
admin/
admin.py
settings.py
urls.py'''
Admin.autodiscover() as far as I know uses imp.find_module('admin',
app_path), which seems to result in looking for an __init__.py inside the
"admin/" folders of the apps, which I need for custom admin views, instead
of directly using "admin.py" from the apps.
--
Ticket URL: <http://code.djangoproject.com/ticket/9127>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---