jazzband / django-hosts

Dynamic and static host resolving for Django. Maps hostnames to URLconfs.
http://django-hosts.rtfd.org
Other
982 stars 106 forks source link

docs: how to use with i18n_patterns #133

Open romain-dartigues opened 3 years ago

romain-dartigues commented 3 years ago

Using django-hosts together with the Djangos language prefix in URL patterns feature is a common use-case; unfortunately it is not straight-forward as using i18n_patterns within an included URLconf will throw an ImproperlyConfigured exception.

Here I suggest an implementation example, but I'm probably missing some points and I would like your enlightenment.

I also would like to add unit tests concerning this topic, but I was unable to setup the testing environment properly; I also kindly request your guidance on it.

Relates to: