I am trying to disable LocateURLMiddleware, so there will not be added en_US to urls on site when only English is used. ``` MIDDLEWARE_CLASSES = get_middleware( exclude=('funfactory.middleware.LocaleURLMiddleware'), append=() ) ``` As soon as funfactory.middleware.LocaleURLMiddleware is disabled it shows error `'gettext' is undefined`: ``` UndefinedError at / 'gettext' is undefined Request Method: GET Request URL: http://33.33.33.24:8000/ Django Version: 1.4.2 Exception Type: UndefinedError Exception Value: 'gettext' is undefined Exception Location: /home/vagrant/project/vendor/src/tower/tower/template.py in _gettext_alias, line 10 ... ``` What is the right way to disable funfactory.middleware.LocaleURLMiddleware ?
I am trying to disable LocateURLMiddleware, so there will not be added en_US to urls on site when only English is used.
As soon as funfactory.middleware.LocaleURLMiddleware is disabled it shows error
'gettext' is undefined:What is the right way to disable funfactory.middleware.LocaleURLMiddleware ?