Merge Request #13
← To merge requests
From
colab_home_redirect
into
master
Colab home redirect
Settings COLAB_HOME_URL indicates the homepage redirect page, empty if default homepage.
Commits (1)
Showing
2 changed files
Show diff stats
colab/home/views.py
... | ... | @@ -13,8 +13,8 @@ from colab.search.utils import trans |
13 | 13 | from colab.super_archives.models import Thread |
14 | 14 | |
15 | 15 | |
16 | -def index(request): | |
17 | - """Index page view""" | |
16 | +def dashboard(request): | |
17 | + """Dashboard page""" | |
18 | 18 | |
19 | 19 | |
20 | 20 | latest_threads = Thread.objects.all()[:6] | ... | ... |
colab/urls.py
... | ... | @@ -13,7 +13,7 @@ admin.autodiscover() |
13 | 13 | |
14 | 14 | urlpatterns = patterns('', |
15 | 15 | url(r'^robots.txt$', 'colab.home.views.robots', name='robots'), |
16 | - url(r'^dashboard$', 'colab.home.views.index', name='dashboard'), | |
16 | + url(r'^dashboard$', 'colab.home.views.dashboard', name='dashboard'), | |
17 | 17 | url(r'^$', RedirectView.as_view(url=settings.COLAB_HOME_URL), name='home'), |
18 | 18 | |
19 | 19 | url(r'^open-data/$', TemplateView.as_view(template_name='open-data.html'), |
... | ... | @@ -46,4 +46,4 @@ if settings.DEBUG: |
46 | 46 | urlpatterns += static.static( |
47 | 47 | settings.MEDIA_URL, |
48 | 48 | document_root=settings.MEDIA_ROOT |
49 | - ) | |
50 | 49 | \ No newline at end of file |
50 | + ) | ... | ... |