Skip to content
This repository was archived by the owner on Jan 8, 2019. It is now read-only.
This repository was archived by the owner on Jan 8, 2019. It is now read-only.

Problem with disabling LocateURLMiddleware #141

Description

@anantagati

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 ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions