Hello

I'm attempting to support two languages on my site however I keep getting 
internal server errors while running locally with DEBUG=False. Without 
manually inputting the language code into the url(ie, 'localhost/en/)' you 
can't avoid server errors.

The home url outputs this root cause:

Resolver404: {u'path': u'favicon.ico', u'tried': [[<RegexURLPattern sql_select 
^__debug__/sql_select/$>], [<RegexURLPattern sql_explain 
^__debug__/sql_explain/$>], [<RegexURLPattern sql_profile 
^__debug__/sql_profile/$>], [<RegexURLPattern template_source 
^__debug__/template_source/$>], [<LocaleRegexURLResolver <RegexURLResolver 
list> (None:None) ^en/>]]}


I've set favicon link in base.html as well as created a valid file in the 
path.

By replacing i18n_patterns with patterns in urls.py, the errors no longer 
persist however when I select a new language nothing occurs.

What am I missing?

Thanks!



Some of my relevant settings:

LANGUAGE_CODE = "en"

# Supported languages
_ = lambda s: s
LANGUAGES = (
    ('en', _('English')),
    ('zh-tw', _('Traditional Chinese')),
)

1.  "django.core.context_processors.i18n" in context processors
2.   'django.middleware.locale.LocaleMiddleware' in middleware
3.      USE_I18N = True
4.      urlpatterns = i18n_patterns(....)

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to