Issue 7 in django-blocks: django-localeurl

3 views
Skip to first unread message

django...@googlecode.com

unread,
Jan 6, 2010, 6:45:10 PM1/6/10
to django...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

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

django...@googlecode.com

unread,
Jan 7, 2010, 2:43:41 AM1/7/10
to django...@googlegroups.com

Comment #1 on issue 7 by joseprupi: django-localeurl
http://code.google.com/p/django-blocks/issues/detail?id=7

I'm sorry cause i've post this issue like a defect and is not.

django...@googlecode.com

unread,
Jan 7, 2010, 3:37:21 PM1/7/10
to django...@googlegroups.com

Comment #2 on issue 7 by joseprupi: django-localeurl
http://code.google.com/p/django-blocks/issues/detail?id=7

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.

django...@googlecode.com

unread,
Jan 7, 2010, 5:35:59 PM1/7/10
to django...@googlegroups.com
Updates:
Status: Accepted
Labels: -Type-Defect Type-Enhancement

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.

django...@googlecode.com

unread,
Jan 26, 2010, 2:29:34 PM1/26/10
to django...@googlegroups.com
Updates:
Status: Done

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!

django...@googlecode.com

unread,
Jan 27, 2010, 4:15:42 PM1/27/10
to django...@googlegroups.com

Comment #5 on issue 7 by kimus.linuxus: django-localeurl
http://code.google.com/p/django-blocks/issues/detail?id=7

I just notice that some things didn't work in context_processor so I
committed a version that supports django-
localeurl

Reply all
Reply to author
Forward
0 new messages