[Django] #23553: Incorrect LOCALE_PATHS settings doesn't raise any exception

23 views
Skip to first unread message

Django

unread,
Sep 24, 2014, 1:19:51 PM9/24/14
to django-...@googlegroups.com
#23553: Incorrect LOCALE_PATHS settings doesn't raise any exception
--------------------------------------+--------------------
Reporter: elvard | Owner: nobody
Type: Bug | Status: new
Component: Internationalization | Version: 1.7
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
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).

--
Ticket URL: <https://code.djangoproject.com/ticket/23553>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Sep 24, 2014, 1:27:46 PM9/24/14
to django-...@googlegroups.com
#23553: Incorrect LOCALE_PATHS settings doesn't raise any exception
-------------------------------------+-------------------------------------
Reporter: elvard | Owner: nobody
Type: Bug | Status: closed
Component: | Version: 1.7
Internationalization | Resolution: duplicate
Severity: Normal | Triage Stage:
Keywords: | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by elvard):

* status: new => closed
* needs_better_patch: => 0
* resolution: => duplicate
* needs_tests: => 0
* needs_docs: => 0


Comment:

Sorry, it's duplicate of #22780... Bug is already fixed in master.

--
Ticket URL: <https://code.djangoproject.com/ticket/23553#comment:1>

Reply all
Reply to author
Forward
0 new messages