Changes between Initial Version and Version 1 of Ticket #17765, comment 3
- Timestamp:
- Mar 4, 2012, 8:02:08 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #17765, comment 3
initial v1 1 1 Your proposal looks correct. But maybe Django should just forbid to define modules outside of `<app_label>.models` — this deserves a bit more investigation. 2 2 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 .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 — see #3591.