diff --git a/boards/urls.py b/boards/urls.py --- a/boards/urls.py +++ b/boards/urls.py @@ -2,7 +2,7 @@ from django.conf.urls import patterns, u from boards import views from boards.rss import AllThreadsFeed, TagThreadsFeed, ThreadPostsFeed from boards.views import api, tag_threads, all_threads, archived_threads, \ - login, settings + login, settings, all_tags js_info_dict = { 'packages': ('boards',), @@ -42,8 +42,9 @@ urlpatterns = patterns('', name='thread'), url(r'^thread/(?P\w+)/(?P\w+)/$', views.thread.ThreadView .as_view(), name='thread_mode'), + url(r'^settings/$', settings.SettingsView.as_view(), name='settings'), - url(r'^tags/$', views.all_tags, name='tags'), + url(r'^tags/$', all_tags.AllTagsView.as_view(), name='tags'), url(r'^captcha/', include('captcha.urls')), url(r'^jump/(?P\w+)/$', views.jump_to_post, name='jumper'), url(r'^authors/$', views.authors, name='authors'), diff --git a/boards/views/__init__.py b/boards/views/__init__.py --- a/boards/views/__init__.py +++ b/boards/views/__init__.py @@ -27,15 +27,6 @@ BAN_REASON_SPAM = 'Autoban: spam bot' DEFAULT_PAGE = 1 -def all_tags(request): - """All tags list""" - - context = _init_default_context(request) - context['all_tags'] = Tag.objects.get_not_empty_tags() - - return render(request, 'boards/tags.html', context) - - # TODO Maybe this jumper is not needed any more? Only as a hack to find some # post without knowing its thread def jump_to_post(request, post_id):