2
0

wrong_namespace.py 344 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. app_name = 'account'
  7. urlpatterns = i18n_patterns(
  8. url(_(r'^register/$'), view, name='register'),
  9. )