#17566: RegexURLResolver.__repr__(self) is not unicode safe. -------------------------------+--------------------------------------- Reporter: otto | Owner: nobody Type: Uncategorized | Status: reopened Component: Core (URLs) | Version: 1.4-alpha-1 Severity: Normal | Resolution: Keywords: unicode | Triage Stage: Unreviewed Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+--------------------------------------- Changes (by vitalije):
* status: closed => reopened * resolution: invalid => Comment: Replying to [comment:3 claudep]: > If app_name contains non-ascii characters, it has to be a Unicode string, which I suspect was not the case in your app. Well you suspect wrong. It is indeed unicode here is one of my models: {{{ class Dobavljac(models.Model): class Meta: app_label = u'Продавница' db_table = u'prodavnica_dobavljac' verbose_name = u'Добављач' verbose_name_plural = u'Добављачи' ... }}} As matter of fact I just have started a new django project and a new application in it using django-admin.py script. Then I have added two very simple models with a unicode app_name like the one above, created admin.py and registered those two models and tested it produces same error. I attached code if you like to test it yourself. Try to open some url that is not in urlpatterns like "/admin/Продавница/rwerew" and django will try to produce technical_404_response but will throw an exception like mentioned before. HTH Vitalije -- Ticket URL: <https://code.djangoproject.com/ticket/17566#comment:4> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.