Hi,
So I can access to my page with my-domain.com/en/contact/. But when I submit a form (or just try to acess it with a POST request), the url changes to my-domain.com/en/en/contact/ and then return a 404 error.
-- I'm building a multi language website using i18n. I get the language in the url with i18n_patterns :
urlpatterns = i18n_patterns(path('/contact/', views.contact, name='contact'), ...)
So I can access to my page with my-domain.com/en/contact/. But when I submit a form (or just try to acess it with a POST request), the url changes to my-domain.com/en/en/contact/ and then return a 404 error.
Any idea ?
Thanks for your help
Kaelig
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/bb102058-6c29-4a14-b3f9-d4e699067614%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment