Thursday, May 24, 2018

Re: Multisite strategy

Thanks Melvyn. That helps a lot.
Anthony

On Thu, May 24, 2018 at 1:18 PM, Melvyn Sopacua <m.r.sopacua@gmail.com> wrote:

On donderdag 24 mei 2018 16:39:34 CEST Anthony Petrillo wrote:

 

> So I was thinking that was an option so that I could build one site and

> then have translations into other languages so when the user picked a

> language everything will switch to that language. Is this a naive

> assumption?

 

A bit. Everything that is in the code can be translated using the gettext functionality outlined in the documention. Everything that is in the database, cannot.

 

You will need separate app for that. Which is the best fit for you, depends on a number of factors, but here are some to choose from:

 

From the Django Packages Internationalizion grid:

 

- Django Model Translation

- .... Parler

- .... Linguist

- .... Model Trans

 

> On Tuesday, May 22, 2018 at 2:31:36 AM UTC-4, Carlo Ascani wrote:

> > Hi all,

> >

> > I'd like to implement something like this:

> >

> > One Django project to serve 3 sites:

> > 1. `domain.com` which is the "master" site, containing just a landing page

> > 2. `de.domain.com` which is the "German" site

> > 3. `en.domain.com` which is the "UK" site

> >

> > `de` and `en` refers the location, not the language (e.g. `

> > de.domain.com/en/` <http://de.domain.com/en/> is the German site in

> > English)

> >

> > If you go to `domain.com` you can choose the language and the country,

> > and you are just redirected to the right place.

> >

> > Is `contrib.site` suitable for that scenario?

> > I was thinking at 3 different sites.

> > If so, how can I use them locally while in development?

> >

> > Any other suggestions?

> >

> > Best,

> > Carlo

 

 

--

Melvyn Sopacua

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/ys6oZtF1Dxg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2693684.PrGW0JMWH4%40fritzbook.

For more options, visit https://groups.google.com/d/optout.



--

Anthony




--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CADr2eV5De4UCY6w8u9aPJewx%2B-iT4xpU2daCkn_C_thukeVC1A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment