wrong_namespace.py 324 B

1234567891011
  1. from django.conf.urls import url
  2. from django.conf.urls.i18n import i18n_patterns
  3. from django.utils.translation import ugettext_lazy as _
  4. from django.views.generic import TemplateView
  5. view = TemplateView.as_view(template_name='dummy.html')
  6. urlpatterns = i18n_patterns(
  7. url(_(r'^register/$'), view, name='register'),
  8. )