Opened 10 years ago
Closed 10 years ago
#23553 closed Bug (duplicate)
Incorrect LOCALE_PATHS settings doesn't raise any exception
Reported by: | Tomáš Ehrlich | Owned by: | nobody |
---|---|---|---|
Component: | Internationalization | Version: | 1.7 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I had following line in settings:
LOCALE_PATHS = os.path.join(PROJECT_ROOT, 'locale')
which is invalid. LOCALE_PATHS must be list or tuple of paths, not string.
Runserver command doesn't raise any warning or error. System check doesn't find any issue. Still, runserver auto-reloading is broken with this settings and it's quiet difficult to spot this bug.
Compared with other similar settings:
- TEMPLATE_DIRS raises ImproperlyConfigured directly
- STATICFILES_DIRS raises ImproperlyConfigured with command collectstatic, runserver works fine (even with reloading).
Note:
See TracTickets
for help on using tickets.
Sorry, it's duplicate of #22780... Bug is already fixed in master.