New issue 7 by joseprupi: django-localeurl
http://code.google.com/p/django-blocks/issues/detail?id=7
Hi,
I'm trying to use django-localeurl with django blocks but i can't make that
menus urls have the language identificator. Can somebody help me?
Thanks
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
I'm sorry cause i've post this issue like a defect and is not.
For now i've solved it statically, creating named url patterns for the
static pages
and using the {% url %} tags in the menu template.
I know is not a good solution but i'm so new in django and python and this
is the
only way i've found to solve it.
Even so I'll try to join django-blocks with django-localeurl dinamically.
Thanks.
Comment #3 on issue 7 by kimus.linuxus: django-localeurl
http://code.google.com/p/django-blocks/issues/detail?id=7
Thank you for your interest in django-blocks. When I wanted to use that
project at some time for choosing
locales but until now for some reason I didn't test it. When I get some
time I will test it also.
Comment #4 on issue 7 by kimus.linuxus: django-localeurl
http://code.google.com/p/django-blocks/issues/detail?id=7
I recently needed to put django-localeurl in a project of mine to correctly
cache contents so this is what I did:
MIDDLEWARE_CLASSES = (
#'django.middleware.cache.UpdateCacheMiddleware',
'localeurl.middleware.LocaleURLMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
#'django.middleware.http.ConditionalGetMiddleware',
'blocks.core.middleware.CommonMiddleware',
#'django.middleware.cache.FetchFromCacheMiddleware',
)
the lines commented (#) are for testing in a real environment you should
have cache enable I guess.
'django.middleware.locale.LocaleMiddleware' should not be there!!
put the application on top:
INSTALLED_APPS = (
'localeurl',
...
)
and that's it!
I just notice that some things didn't work in context_processor so I
committed a version that supports django-
localeurl