language prefix

11 views
Skip to first unread message

gerram

unread,
Jun 21, 2011, 8:59:12 AM6/21/11
to django-page-cms
Hi, everybody!
I have one page (example 'main') on 2 languages (en, ru).
How I can get it differently for every language? (www.example.com/en/
main - on english and www.example.com/ru/main - on russian). Now I get
the same page for different urls: /en/main and /ru/main. Can anyone to
explain me how to use language prefixes in django-page-cms?
Best regards, George.

Nicolas CANIART

unread,
Jun 27, 2011, 5:57:32 PM6/27/11
to django-...@googlegroups.com
Hi !

I don't use url prefix myself and I'm not sure I completely understand
your problem.
You mean that, in the admin, you have created a page that has the slug
'main' and is translated both in russian and english. And you would
like to know how to make them available to you visitors through an URL
of the form /<language>/main (with language being either 'en' or
'ru').

First things first: without using the language prefix mecanism, can
you see either version of the page ? If you don't, maybe you should
try that first (see
http://packages.python.org/django-page-cms/installation.html).
If you do, what happens when you enable the language prefix mecanism ?
Have you enabled debug ? Do you get any error messages, from django ?
from the web server ?
Aren't there any messages in the server logs ?

Also can you tell what does your urls file looks like ?

Nicolas.

2011/6/21 gerram <george...@gmail.com>:

> --
> You received this message because you are subscribed to the Google Groups "django-page-cms" group.
> To post to this group, send email to django-...@googlegroups.com.
> To unsubscribe from this group, send email to django-page-c...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-page-cms?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages