Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Domain Clarification #8

Open
adamjgrant opened this issue Nov 3, 2013 · 0 comments
Open

Domain Clarification #8

adamjgrant opened this issue Nov 3, 2013 · 0 comments

Comments

@adamjgrant
Copy link

Kind of confused by the documentation...

"This settings should be a dictionary mapping language codes to two-element tuples, where the first element is the domain for that language,"

Does the "domain for that language" mean the locale code?

"and the second element is the name of the site this represents."

You mean the domain that will require that locale?

Example:

MULTILANG_LANGUAGE_DOMAINS = {
  'en': ('www.example-en.com', 'English Site'),
  'fr': ('www.example-fr.com', 'French Site')
}

I know those are just example domains, but surely there is a way to capture domains both with and without the "www"? Especially when I have stage.example.com as well.

have tried just listing both, but I find it just prefers the second one.

  'fr': ('example-fr.com', 'French Site')
  'fr': ('www.example-fr.com', 'French Site')

In this case, only www works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant