{'next_page': '/'}), url(r'^accounts/forgot-username/$', forgot_username_view, name='forgot_username'), url(r'^accounts/', include('registration_backend.urls')), # Create a redirect view for setting the session language preference # https://docs.djangoproject.com/en/1.0/topics/i18n/#the-set-language-redirect-view # NOQA url(r'^i18n/', include('django.conf.urls.i18n')), url(r'^not-available$', instance_not_available_view, name='instance_not_available'), url(r'^unsupported$', unsupported_view, name='unsupported'), url(r'^main\.css$', scss_view, name='scss'), url(r'^eco/benefit/within_itree_regions/$', within_itree_regions_view, name='within_itree_regions'), url(r'^instances/$', instances_geojson_view), url(instance_pattern + r'/accounts/register/$', RegistrationView.as_view(), name='instance_registration_register'), url(instance_pattern + r'/', include('treemap.urls')), url(instance_pattern + r'/importer/', include('importer.urls', namespace='importer')), url(instance_pattern + r'/export/', include('exporter.urls')), url(instance_pattern + r'/comments/', include('otm_comments.urls')), ) if settings.USE_JS_I18N: js_i18n_info_dict = { 'domain': 'djangojs', 'packages': settings.I18N_APPS, } urlpatterns = patterns('', url(r'^jsi18n/$',
def _make_registration_view(self): rv = RegistrationView() rv.request = self._make_request() return rv
url(r'^accounts/logout/$', 'django.contrib.auth.views.logout', {'next_page': '/'}), url(r'^accounts/forgot-username/$', forgot_username_view, name='forgot_username'), url(r'^accounts/', include('registration_backend.urls')), # Create a redirect view for setting the session language preference # https://docs.djangoproject.com/en/1.0/topics/i18n/#the-set-language-redirect-view # NOQA url(r'^i18n/', include('django.conf.urls.i18n')), url(r'^not-available$', instance_not_available_view, name='instance_not_available'), url(r'^unsupported$', unsupported_view, name='unsupported'), url(r'^main\.css$', scss_view, name='scss'), url(r'^eco/benefit/within_itree_regions/$', within_itree_regions_view, name='within_itree_regions'), url(instance_pattern + r'/accounts/register/$', RegistrationView.as_view(), name='instance_registration_register'), url(instance_pattern + r'/', include('treemap.urls')), url(instance_pattern + r'/export/', include('exporter.urls')) ) if settings.USE_JS_I18N: js_i18n_info_dict = { 'domain': 'djangojs', 'packages': settings.I18N_APPS, } urlpatterns = patterns('', url(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_i18n_info_dict)) + urlpatterns