# User url('^users/(?P<username>[^/]+)/$', UserView.as_view(), name='user'), url('^block_user/([^/]+)/$', block_user, name='block_user'), url('^unblock_user/([^/]+)/$', unblock_user, name='unblock_user'), url(r'^users/(?P<username>[^/]+)/topics/$', UserTopics.as_view(), name='user_topics'), url(r'^users/(?P<username>[^/]+)/posts/$', UserPosts.as_view(), name='user_posts'), url(r'^users/(?P<username>[^/]+)/edit-privileges/$', UserEditPrivilegesView.as_view(), name='edit_privileges'), # Profile url('^profile/edit/$', ProfileEditView.as_view(), name='edit_profile'), # Topic url('^topic/(?P<pk>\d+)/$', TopicView.as_view(), name='topic'), url('^topic/(?P<pk>\d+)/stick/$', StickTopicView.as_view(), name='stick_topic'), url('^topic/(?P<pk>\d+)/unstick/$', UnstickTopicView.as_view(), name='unstick_topic'), url('^topic/(?P<pk>\d+)/close/$', CloseTopicView.as_view(), name='close_topic'), url('^topic/(?P<pk>\d+)/open/$', OpenTopicView.as_view(), name='open_topic'),
) urlpatterns += patterns('pybb.views', # Index, Category, Forum url('^$', IndexView.as_view(), name='index'), url('^category/(?P<pk>\d+)/$', CategoryView.as_view(), name='category'), url('^forum/(?P<pk>\d+)/$', ForumView.as_view(), name='forum'), # User url('^users/(?P<username>[^/]+)/$', UserView.as_view(), name='user'), url('^block_user/([^/]+)/$', 'block_user', name='block_user'), url(r'^users/(?P<username>[^/]+)/topics/$', UserTopics.as_view(), name='user_topics'), url(r'^users/(?P<username>[^/]+)/posts/$', UserPosts.as_view(), name='user_posts'), # Profile url('^profile/edit/$', ProfileEditView.as_view(), name='edit_profile'), # Topic url('^topic/(?P<pk>\d+)/$', TopicView.as_view(), name='topic'), url('^topic/(?P<pk>\d+)/stick/$', StickTopicView.as_view(), name='stick_topic'), url('^topic/(?P<pk>\d+)/unstick/$', UnstickTopicView.as_view(), name='unstick_topic'), url('^topic/(?P<pk>\d+)/close/$', CloseTopicView.as_view(), name='close_topic'), url('^topic/(?P<pk>\d+)/open/$', OpenTopicView.as_view(), name='open_topic'), url('^topic/(?P<pk>\d+)/poll_vote/$', TopicPollVoteView.as_view(), name='topic_poll_vote'), url('^topic/(?P<pk>\d+)/cancel_poll_vote/$', topic_cancel_poll_vote, name='topic_cancel_poll_vote'), url('^topic/latest/$', LatestTopicsView.as_view(), name='topic_latest'), # Add topic/post url('^forum/(?P<forum_id>\d+)/topic/add/$', AddPostView.as_view(), name='add_topic'), url('^topic/(?P<topic_id>\d+)/post/add/$', AddPostView.as_view(), name='add_post'),
url(r'^search/$', search_views.search, name='search'), url(r'^import/', include(site_import_urls)), url(r'^api/', include(api_urls)), url(r'^payments/', include(payment_urls)), url(r'^coffee/', include(coffee_urls)), url(r'^accounts/', include('allauth.urls')), url(r'^accounts/username/change/$', change_username, name='account_change_username'), url(r'^accounts/username/change_new/$', change_username, name='account_change_username'), url(r'^comments/', include('django_comments_xtd.urls')), url(r'^forum/profile/edit/$', ProfileEditView.as_view(form_class=AORProfileForm), name='pybb:edit_profile'), url(r'^forum/users/(?P<username>[^/]+)/topics/$', UserTopics.as_view(), name='user_topics'), url(r'^forum/users/(?P<username>[^/]+)/posts/$', UserPosts.as_view(), name='user_posts'), url(r'^forum/topic/(?P<pk>\d+)/$', AorTopicView.as_view(), name='topic'), url(r'^forum/topic/(?P<pk>\d+)/move/$', MovePostView.as_view(), name='move_post'), url(r'^forum/forum/(?P<forum_id>\d+)/topic/add/$', AorAddPostView.as_view(), name='add_topic'), url(r'^forum/topic/(?P<topic_id>\d+)/post/add/$', AorAddPostView.as_view(), name='add_post'), url(r'^forum/post/(?P<pk>\d+)/edit/$', AorEditPostView.as_view(), name='edit_post'), url(r'^forum/post/move/processing/$', move_post_processing, name='move_post_processing'), url(r'^forum/', include('pybb.urls', namespace='pybb')), url(r'^messages/', include('forum_messages.urls')),
) urlpatterns += patterns( "pybb.views", # Index, Category, Forum url("^$", IndexView.as_view(), name="index"), url("^category/(?P<pk>\d+)/$", CategoryView.as_view(), name="category"), url("^forum/(?P<pk>\d+)/$", ForumView.as_view(), name="forum"), # User url("^users/(?P<username>[^/]+)/$", UserView.as_view(), name="user"), url("^block_user/([^/]+)/$", "block_user", name="block_user"), url("^unblock_user/([^/]+)/$", "unblock_user", name="unblock_user"), url(r"^users/(?P<username>[^/]+)/topics/$", UserTopics.as_view(), name="user_topics"), url(r"^users/(?P<username>[^/]+)/posts/$", UserPosts.as_view(), name="user_posts"), # Profile url("^profile/edit/$", ProfileEditView.as_view(), name="edit_profile"), # Topic url("^topic/(?P<pk>\d+)/$", TopicView.as_view(), name="topic"), url("^topic/(?P<pk>\d+)/stick/$", StickTopicView.as_view(), name="stick_topic"), url("^topic/(?P<pk>\d+)/unstick/$", UnstickTopicView.as_view(), name="unstick_topic"), url("^topic/(?P<pk>\d+)/close/$", CloseTopicView.as_view(), name="close_topic"), url("^topic/(?P<pk>\d+)/open/$", OpenTopicView.as_view(), name="open_topic"), url("^topic/(?P<pk>\d+)/poll_vote/$", TopicPollVoteView.as_view(), name="topic_poll_vote"), url("^topic/(?P<pk>\d+)/cancel_poll_vote/$", topic_cancel_poll_vote, name="topic_cancel_poll_vote"), url("^topic/latest/$", LatestTopicsView.as_view(), name="topic_latest"), # Add topic/post url("^forum/(?P<forum_id>\d+)/topic/add/$", AddPostView.as_view(), name="add_topic"), url("^topic/(?P<topic_id>\d+)/post/add/$", AddPostView.as_view(), name="add_post"), # Post url("^post/(?P<pk>\d+)/$", PostView.as_view(), name="post"), url("^post/(?P<pk>\d+)/edit/$", EditPostView.as_view(), name="edit_post"),
'', url(r'^robots.txt$', TemplateView.as_view(template_name='robots.txt')), url(r'^yandex_72c667563364196f.html$', TemplateView.as_view(template_name='yandex_72c667563364196f.html')), url(r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}), url(r'^donate/$', TemplateView.as_view(template_name='donate.html'), name='donate'), url(r'^$', TemplateView.as_view(template_name='index.html'), name='home'), url(r'^accounts/register/$', RegistrationView.as_view(form_class=RegistrationFormCaptcha), name="registration_register"), url(r'^accounts/logout/$', safe_logout, name='auth_logout'), url(r'^accounts/', include('registration.backends.default.urls')), url(r'^accounts/', include('django.contrib.auth.urls')), url(r'^forum/profile/edit/$', ProfileEditView.as_view(form_class=AORProfileForm), name='pybb:edit_profile'), url(r'^forum/users/(?P<username>[^/]+)/topics/$', UserTopics.as_view(), name='user_topics'), url(r'^forum/users/(?P<username>[^/]+)/posts/$', UserPosts.as_view(), name='user_posts'), url(r'^forum/topic/(?P<pk>\d+)/$', AorTopicView.as_view(), name='topic'), url(r'^forum/topic/(?P<pk>\d+)/move/$', MovePostView.as_view(), name='move_post'), url(r'^forum/forum/(?P<forum_id>\d+)/topic/add/$', AorAddPostView.as_view(), name='add_topic'), url(r'^forum/topic/(?P<topic_id>\d+)/post/add/$', AorAddPostView.as_view(), name='add_post'), url(r'^forum/post/(?P<pk>\d+)/edit/$', AorEditPostView.as_view(), name='edit_post'), url(r'^forum/post/move/processing/$', move_post_processing, name='move_post_processing'), url(r'^forum/', include('pybb.urls', namespace='pybb')), # url(r'^search/$', Search.as_view(), name='search'),