Changes between Initial Version and Version 1 of Ticket #17765, comment 3


Ignore:
Timestamp:
03/04/2012 08:02:08 AM (3 years ago)
Author:
aaugustin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17765, comment 3

    initial v1  
    11Your proposal looks correct. But maybe Django should just forbid to define modules outside of `<app_label>.models` — this deserves a bit more investigation.
    22
    3 Maybe we should raise an error when `app_label` isn't in `INSTALLED_APPS`. Currently it's possible to import models from an app that isn't in `INSTALLED_APPS`, and it can lead to hard-to-debug errors. This is related to the app-refactor project.
     3Maybe we should raise an error when `app_label` isn't in `INSTALLED_APPS`. Currently it's possible to import models from an app that isn't in `INSTALLED_APPS`, and it can lead to hard-to-debug errors. This is related to the app-refactor project — see #3591.
Back to Top