Merge Request #13

Merged
softwarepublico/colab!13
Created by Gustavo Jaruga Cruz

Colab home redirect

Settings COLAB_HOME_URL indicates the homepage redirect page, empty if default homepage.

Assignee: Sergio Oliveira
Milestone: None

Merged by Sergio Oliveira

Source branch has been removed
Commits (1)
2 participants
    9fe63c7bd60deeb55e409a1d7dd173f5?s=40&d=identicon
    Sergio Oliveira started a discussion on the outdated diff
    last updated by Sergio Oliveira
    colab/urls.py
    11 12 admin.autodiscover()
    12 13  
    13 14 urlpatterns = patterns('',
    14   - url(r'^$', 'colab.home.views.index', name='home'),
    15 15 url(r'^robots.txt$', 'colab.home.views.robots', name='robots'),
      16 + url(r'^dashboard$', 'colab.home.views.index', name='dashboard'),
    1
    9fe63c7bd60deeb55e409a1d7dd173f5?s=40&d=identicon
    Sergio Oliveira started a discussion on the outdated diff
    last updated by Sergio Oliveira
    colab/urls.py
    11 12 admin.autodiscover()
    12 13  
    13 14 urlpatterns = patterns('',
    14   - url(r'^$', 'colab.home.views.index', name='home'),
    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'),
    1