Can you help me?

2017-12-04 3:48 GMT+08:00 Juan José Meneses <juanjmene...@gmail.com>:

> 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 <https://dpaste.de/jH7s>
>
> --
> 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
> <https://groups.google.com/d/msgid/django-users/a3493502-c39d-4f34-a82b-bcf38ae4271b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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.

Reply via email to