Commit c6f6cddd5ca0b6a7e1863b23ef70caf074e31b9d

Authored by Gust
Committed by Sergio Oliveira
1 parent 060646dd

Add default home to dashboard

-Sets colab old home as Dashboard
-Default setting of home to dashboard

Signed-off-by: Gustavo Jaruga <darksshades@gmail.com>
Showing 2 changed files with 3 additions and 10 deletions   Show diff stats
colab/settings.py
... ... @@ -316,4 +316,4 @@ proxied_apps = locals().get(&#39;PROXIED_APPS&#39;) or {}
316 316 for app_label in proxied_apps.keys():
317 317 INSTALLED_APPS += ('colab.proxy.{}'.format(app_label),)
318 318  
319   -COLAB_HOME_URL = ''
320 319 \ No newline at end of file
  320 +COLAB_HOME_URL = '/dashboard'
321 321 \ No newline at end of file
... ...
colab/urls.py
... ... @@ -13,6 +13,8 @@ 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'),
  17 + url(r'^$', RedirectView.as_view(url=settings.COLAB_HOME_URL), name='home'),
16 18  
17 19 url(r'^open-data/$', TemplateView.as_view(template_name='open-data.html'),
18 20 name='opendata'),
... ... @@ -44,13 +46,4 @@ if settings.DEBUG:
44 46 urlpatterns += static.static(
45 47 settings.MEDIA_URL,
46 48 document_root=settings.MEDIA_ROOT
47   - )
48   -
49   -if settings.COLAB_HOME_URL:
50   - urlpatterns += patterns('',
51   - url(r'^$', RedirectView.as_view(url=settings.COLAB_HOME_URL), name='home'),
52   - )
53   -else:
54   - urlpatterns += patterns('',
55   - url(r'^$', 'colab.home.views.index', name='home'),
56 49 )
57 50 \ No newline at end of file
... ...