diff --git a/colab/home/views.py b/colab/home/views.py index 1dd315d..ad65f55 100644 --- a/colab/home/views.py +++ b/colab/home/views.py @@ -13,8 +13,8 @@ from colab.search.utils import trans from colab.super_archives.models import Thread -def index(request): - """Index page view""" +def dashboard(request): + """Dashboard page""" latest_threads = Thread.objects.all()[:6] diff --git a/colab/urls.py b/colab/urls.py index f38eb24..318d769 100644 --- a/colab/urls.py +++ b/colab/urls.py @@ -13,7 +13,7 @@ admin.autodiscover() urlpatterns = patterns('', url(r'^robots.txt$', 'colab.home.views.robots', name='robots'), - url(r'^dashboard$', 'colab.home.views.index', name='dashboard'), + url(r'^dashboard$', 'colab.home.views.dashboard', name='dashboard'), url(r'^$', RedirectView.as_view(url=settings.COLAB_HOME_URL), name='home'), url(r'^open-data/$', TemplateView.as_view(template_name='open-data.html'), @@ -46,4 +46,4 @@ if settings.DEBUG: urlpatterns += static.static( settings.MEDIA_URL, document_root=settings.MEDIA_ROOT - ) \ No newline at end of file + ) -- libgit2 0.21.2