Changes between Version 1 and Version 2 of Ticket #25034
- Timestamp:
- Jun 28, 2015, 4:13:45 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #25034 – Description
v1 v2 9 9 Case 2 seems to be entirely redundant as it's only used for defining `urlpatterns` in that file and I can't find anything which uses this or any mention of it in the docs going back to v1.4. If I remove those lines the tests continue to pass, so I hoping this can be safely removed. 10 10 11 If we could remove these two cases then we have the simple rule that settings are not to be accessed at import time, and we won't have any subtle import-order requirements. 11 The coding style document [https://docs.djangoproject.com/en/1.8/internals/contributing/writing-code/coding-style/#use-of-django-conf-settings suggests] that such import-time evaluation of settings is to be avoided, and it's causing at least some real-world confusion, so it would be good to clean this up if possible.