Django internal tests and url reverse lookup

2009-01-07 Thread aeby

Hi all,

If I run manage.py test form my project, Django internal test are
executed as well.
If such a internal test uses a RequestContext, all template context
processors defined in settings.TEMPLATE_CONTEXT_PROCESSORS are loaded
by django.template.context.get_standard_processors().

If one of this (custom) template context processors uses
"django.core.urlresolvers.reverse()" for a reverse URL matching, there
will be no match for project specific URLs as this URL definitions
aren't loaded for Django internal tests.

How can this be fixed? Shouldn't load the test environment all the
project URL definitions?

Thanks and regards,
/Aeby
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Translate text

2007-07-05 Thread aeby

Hi all,

Is there a way to translate text (and make the msgids appear in the po
files) that does not appear in python source nor in templates. I try
to translate text stored in the database.

Thanks & Greets,
Aeby


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---