summaryrefslogtreecommitdiffstats
path: root/univnautes_idp/urls_public.py
blob: d97d989fe5849564b755d127d13e815eabfdf6a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from django.conf.urls import patterns, url, include
from django.views.generic import ListView, CreateView, RedirectView
from authentic2.urls import urlpatterns as authentic2_urlpatterns
from entrouvert.djommon.multitenant.models import Tenant
from base.views import TenantCreateView

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url(r'^$', ListView.as_view(
        model=Tenant,
        template_name='univnautes-idp/homepage.html')
    ),
    #url(r'^create/$', CreateView.as_view(model=Tenant)),
    url(r'^create/$', TenantCreateView.as_view()),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^admin_tools/', include('admin_tools.urls')),
    url(r'^logout/$', RedirectView.as_view(url='/admin/logout'), name='auth_logout'),
)