urlpatterns = patterns( "", # url(r'^activate/complete/$', # ActivationCompleteView, # name='registration_activation_complete'), url( r"^activate/complete/$", TemplateView.as_view(template_name="registration/activation_complete.html"), name="registration_activation_complete", ), # Activation keys get matched by \w+ instead of the more specific # [a-fA-F0-9]{40} because a bad activation key should still get to the view; # that way it can return a sensible "invalid key" message instead of a # confusing 404. url(r"^activate/(?P<activation_key>\w+)/$", ActivationView.as_view(), name="registration_activate"), url(r"^register/$", RegistrationView.as_view(), name="registration_register"), url( r"^register/complete/$", TemplateView.as_view(template_name="registration/registration_complete.html"), name="registration_complete", ), url( r"^register/complete/simple$", TemplateView.as_view(template_name="registration/registration_complete_simple.html"), name="registration_complete_simple", ), url( r"^register/closed/$", TemplateView.as_view(template_name="registration/registration_closed.html"), name="registration_disallowed", ),
name='comments_debate'), url(r'^comments/best/?$', CommentsBestView.as_view(), name='comments_best'), url(r'^comments/tag/(?P<flag>.*?)/?$', CommentsTagView.as_view(), name='comments_tag'), url(r'^comments/related/(?P<url_b64>.*?)/?$', CommentsRelatedView.as_view(), name='comments_related'), url(r'^comments/newest/?$', CommentsNewestView.as_view(), name='comments_newest'), url(r'^comments/$', CommentsView.as_view(), name='comments'), url(r'^comments/urlpost/$', UrlpostView.as_view(), name='url_post'), url(r'^accounts/register/$', RegistrationView.as_view(form_class=VineRegistrationForm), name='registration_register'), url(r'^accounts/register/simple/$', RegistrationSimpleView.as_view(form_class=VineRegistrationForm), name='registration_register_simple'), url(r'^accounts/', include('registration.backends.urls')), url(r'^index$', TemplateView.as_view(template_name='index.html'), name='index'), url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), url(r'^author/(?P<name>.*?)/comment/?$', AuthorCommentsView.as_view(), name='author_comment'), url(r'document/upload', DocumentUploadView.as_view(),
url(r'^letter/(?P<url_b64>.*?)/?$', LetterView.as_view(), name='letter'), url(r'^letter_raw/(?P<url_b64>.*?)/?$', LetterRawView.as_view(), name='letter_raw'), url(r'^setting/(?P<url_b64>.*?)/?$', SettingView.as_view(), name='setting'), url(r'^setting_raw/(?P<url_b64>.*?)/?$', SettingRawView.as_view(), name='setting_raw'), url(r'^auth_test/$', TemplateView.as_view(template_name='social_signin.html'), name='auth_test'), url(r'^comments/hot/(?P<days>.*?)/?$', CommentsHotView.as_view(), name='comments_hot'), url(r'^comments/up/(?P<days>.*?)/?$', CommentsUpView.as_view(), name='comments_up'), url(r'^comments/debate/(?P<days>.*?)/?$', CommentsDebateView.as_view(), name='comments_debate'), url(r'^comments/best/?$', CommentsBestView.as_view(), name='comments_best'), url(r'^comments/tag/(?P<flag>.*?)/?$', CommentsTagView.as_view(), name='comments_tag'), url(r'^comments/related/(?P<url_b64>.*?)/?$', CommentsRelatedView.as_view(), name='comments_related'), url(r'^comments/newest/?$', CommentsNewestView.as_view(), name='comments_newest'), url(r'^comments/$', CommentsView.as_view(), name='comments'), url(r'^comments/urlpost/$', UrlpostView.as_view(), name='url_post'), url(r'^accounts/register/$', RegistrationView.as_view(form_class=VineRegistrationForm), name='registration_register'), url(r'^accounts/register/simple/$', RegistrationSimpleView.as_view(form_class=VineRegistrationForm), name='registration_register_simple'), url(r'^accounts/', include('registration.backends.urls')), url(r'^index$', TemplateView.as_view(template_name='index.html'), name='index'), url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), url(r'^author/(?P<name>.*?)/comment/?$', AuthorCommentsView.as_view(), name='author_comment'), url(r'document/upload', DocumentUploadView.as_view(), name='document_upload') ) from haystack.views import SearchView, search_view_factory, FacetedSearchView from haystack.forms import HighlightedModelSearchForm, FacetedSearchForm from haystack.query import SearchQuerySet