Hello,
I am new to Satchmo and I am trying to understand for a couple of days the
way of URLs organization in the project in order to understand how to make
it work with language prefixes, which were introduced in Django 1.4:
https://docs.djangoproject.com/en/1.4/topics/i18n/translation/#language-prefix-in-url-patterns
I tried doing something like:
from django.conf.urls import include, url
from django.conf.urls.i18n import i18n_patterns
from satchmo_store.urls import basepatterns, defaultpatterns
from satchmo_store.shop.urls import urlpatterns as shoppatterns
urlpatterns = i18n_patterns('',
url(r'^$', include(shoppatterns)),
) + basepatterns + defaultpatterns
It puts the correct prefix in front of the url, according to the chosen
language, but then there are errors with the handling of urls, in
particular the loading of category_tree in the base template.
Can somebody please tell me if you have tried to do something similar and
what other changes do I need to make in order to make all URLs handled
properly with the language prefixes ?
--
You received this message because you are subscribed to the Google Groups
"Satchmo users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/satchmo-users/-/qFqtEJc1I8IJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/satchmo-users?hl=en.