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


Ignore:
Timestamp:
Mar 4, 2012, 8:02:08 AM (13 years ago)
Author:
Aymeric Augustin

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