url(r'^$', WriteItInstanceDetailView.as_view(), name='instance_detail'), url(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict), url(r'^write/sign/(?P<slug>[-\w]+)/$', ConfirmView.as_view(), name='confirm'), url(r'^write/sign/$', WriteSignView.as_view(), name='write_message_sign'), url(r'^write/(?P<step>.+)/$', write_message_wizard, name='write_message_step'), url(r'^write/$', write_message_wizard, name='write_message'), # url(r'^write/draft/$', TemplateView.as_view(template_name='write/draft.html'), name='write_draft'), # url(r'^write/preview/$', TemplateView.as_view(template_name='write/preview.html'), name='write_preview'), url(r'^missing/$', MissingContactsView.as_view(), name='missing_contacts'), url(r'^threads/$', MessageThreadsView.as_view(), name='message_threads'), url(r'^thread/(?P<slug>[-\w]+)/$', MessageThreadView.as_view(), name='thread_read'), url(r'^per_person/(?P<pk>[-\d]+)/$', MessagesPerPersonView.as_view(), name='messages_per_person'), url(r'^per_person_id/(?P<person_id>.+)/$', MessagesPerPersonView.as_view(), name='messages_per_person_id'), url(r'^from/(?P<message_slug>[-\w]+)/?$', MessagesFromPersonView.as_view(), name='all-messages-from-the-same-author-as'), url(r'^to/(?P<pk>[-\d]+)/$', MessagesPerPersonView.as_view(), name='thread_to'), url(r'^search/$', PerInstanceSearchView(), name='instance_search'), url(r'^attachment/(?P<pk>[-\d]+)/$',
} write_message_wizard = WriteMessageView.as_view(url_name='write_message_step') urlpatterns = i18n_patterns('', url(r'^$', WriteItInstanceDetailView.as_view(), name='instance_detail'), url(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict), url(r'^write/sign/(?P<slug>[-\w]+)/$', ConfirmView.as_view(), name='confirm'), url(r'^write/sign/$', WriteSignView.as_view(), name='write_message_sign'), url(r'^write/(?P<step>.+)/$', write_message_wizard, name='write_message_step'), url(r'^write/$', write_message_wizard, name='write_message'), # url(r'^write/draft/$', TemplateView.as_view(template_name='write/draft.html'), name='write_draft'), # url(r'^write/preview/$', TemplateView.as_view(template_name='write/preview.html'), name='write_preview'), url(r'^missing/$', MissingContactsView.as_view(), name='missing_contacts'), url(r'^threads/$', MessageThreadsView.as_view(), name='message_threads'), url(r'^thread/(?P<slug>[-\w]+)/$', MessageThreadView.as_view(), name='thread_read'), url(r'^per_person/(?P<pk>[-\d]+)/$', MessagesPerPersonView.as_view(), name='messages_per_person'), url(r'^per_person_id/(?P<person_id>.+)/$', MessagesPerPersonView.as_view(), name='messages_per_person_id'), url(r'^from/(?P<message_slug>[-\w]+)/?$', MessagesFromPersonView.as_view(), name='all-messages-from-the-same-author-as'), url(r'^to/(?P<pk>[-\d]+)/$', MessagesPerPersonView.as_view(), name='thread_to'), url(r'^search/$', PerInstanceSearchView(), name='instance_search'), url(r'^attachment/(?P<pk>[-\d]+)/$', download_attachment_view, name='attachment'), url(r'^manage/', include(managepatterns)), url(r'^accounts/logout/$', 'django.contrib.auth.views.logout', kwargs={'next_page': '/'}, name='logout'), url(r'^about/?$', AboutView.as_view(), name='about'), url(r'^help/(?P<section_name>\w+)/?$', HelpView.as_view(), name='help_section'), url(r'^help/?$', HelpView.as_view()), url(r'^version.json$', VersionView.as_view(), name='instance_version'),
} write_message_wizard = WriteMessageView.as_view(url_name='write_message_step') urlpatterns = i18n_patterns('', url(r'^$', WriteItInstanceDetailView.as_view(), name='instance_detail'), url(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict), url(r'^write/sign/(?P<slug>[-\w]+)/$', ConfirmView.as_view(), name='confirm'), url(r'^write/sign/$', WriteSignView.as_view(), name='write_message_sign'), url(r'^write/(?P<step>.+)/$', write_message_wizard, name='write_message_step'), url(r'^write/$', write_message_wizard, name='write_message'), # url(r'^write/draft/$', TemplateView.as_view(template_name='write/draft.html'), name='write_draft'), # url(r'^write/preview/$', TemplateView.as_view(template_name='write/preview.html'), name='write_preview'), url(r'^missing/$', MissingContactsView.as_view(), name='missing_contacts'), url(r'^threads/$', MessageThreadsView.as_view(), name='message_threads'), url(r'^thread/(?P<slug>[-\w]+)/$', MessageThreadView.as_view(), name='thread_read'), url(r'^per_person/(?P<pk>[-\d]+)/$', MessagesPerPersonView.as_view(), name='messages_per_person'), url(r'^per_person_id/(?P<person_id>.+)/$', MessagesPerPersonView.as_view(), name='messages_per_person_id'), url(r'^from/(?P<message_slug>[-\w]+)/?$', MessagesFromPersonView.as_view(), name='all-messages-from-the-same-author-as'), url(r'^to/(?P<pk>[-\d]+)/$', MessagesPerPersonView.as_view(), name='thread_to'), url(r'^search/$', PerInstanceSearchView(), name='instance_search'), url(r'^attachment/(?P<pk>[-\d]+)/$', download_attachment_view, name='attachment'), url(r'^manage/', include(managepatterns)), url(r'^accounts/logout/$', 'django.contrib.auth.views.logout', kwargs={'next_page': '/'}, name='logout'), url(r'^about/?$', AboutView.as_view(), name='about'), url(r'^help/(?P<section_name>\w+)/?$', HelpView.as_view(), name='help_section'), url(r'^help/?$', HelpView.as_view()), url(r'^version.json$', VersionView.as_view(), name='instance_version'),