Re: Problems with translating URL patterns.

2017-12-07 Thread Egor Smolyakov
I can't do it. Describe what do you want?

On Sunday, 3 December 2017 22:29:05 UTC+2, Juan José Meneses wrote:
>
> Hello, I'm having problems with translating URL patterns. If I set a URL 
> patter to be, for example, 
> url(_(r'^admin/'), admin.site.urls)
>
> where 
> _()
>
> is ugettext_lazy and access a no defined URL, lets say /404/, Instead of 
> getting a 404 error I'm getting a 500 internal error.
> It looks from the log that the ugettext_lazy is not printable? Any ideas? 
> Thanks. 
>
> Here is the log https://dpaste.de/RmWR 
>

-- 
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+unsubscr...@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/d519253c-fc83-4f48-8d06-4e45aa6de413%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problems with translating URL patterns.

2017-12-03 Thread chotak lee
Can you help me?

2017-12-04 3:48 GMT+08:00 Juan José Meneses :

> Hello, I'm having problems with translating URL patterns. If I set a URL
> patter to be, for example,
> url(_(r'^admin/'), admin.site.urls)
>
> where
> _()
>
> is ugettext_lazy and access a no defined URL, lets say /404/, Instead of
> getting a 404 error I'm getting a 500 internal error.
> It looks from the log that the ugettext_lazy is not printable? Any ideas?
> Thanks.
>
> Here is the log https://dpaste.de/RmWR 
>
> --
> 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+unsubscr...@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/a3493502-c39d-4f34-a82b-bcf38ae4271b%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@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/CABeMx3fAhGhY%2BbGnxsF8m-XOoRPeWv6uPLm%3DNkSUBrt84jPO%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.