Redirect to the list index from the server's front page
This commit is contained in:
parent
f2f6f56a98
commit
13f3afebad
1 changed files with 7 additions and 5 deletions
|
@ -10,16 +10,18 @@ from django.conf import settings
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
admin.autodiscover()
|
admin.autodiscover()
|
||||||
|
|
||||||
# Import mailman urls and set urlpatterns if you want to hook
|
# Import hyperkitty urls and set urlpatterns if you want to hook
|
||||||
# mailman_django into an existing django site.
|
# hyperkitty into an existing django site.
|
||||||
# Otherwise set ROOT_URLCONF in settings.py to
|
# Otherwise set ROOT_URLCONF in settings.py to
|
||||||
# `mailman_django.urls`.
|
# `hyperkitty.urls`.
|
||||||
# from mailman_django import urls as mailman_urls
|
|
||||||
|
from django.core.urlresolvers import reverse_lazy
|
||||||
|
from django.views.generic import RedirectView
|
||||||
|
|
||||||
urlpatterns = patterns('',
|
urlpatterns = patterns('',
|
||||||
|
url(r'^$', RedirectView.as_view(url=reverse_lazy('hyperkitty.views.index.index'))),
|
||||||
#url(r'^$', 'postorius.views.list_index'),
|
#url(r'^$', 'postorius.views.list_index'),
|
||||||
url(r'^admin/', include('postorius.urls')),
|
url(r'^admin/', include('postorius.urls')),
|
||||||
url(r'^$', 'hyperkitty.views.pages.index'),
|
|
||||||
url(r'^archives/', include('hyperkitty.urls')),
|
url(r'^archives/', include('hyperkitty.urls')),
|
||||||
url(r'', include('social_auth.urls')),
|
url(r'', include('social_auth.urls')),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue