summaryrefslogtreecommitdiffstats
path: root/univnautes_idp/urls_public.py
diff options
context:
space:
mode:
Diffstat (limited to 'univnautes_idp/urls_public.py')
-rw-r--r--univnautes_idp/urls_public.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/univnautes_idp/urls_public.py b/univnautes_idp/urls_public.py
index e2e2024..d97d989 100644
--- a/univnautes_idp/urls_public.py
+++ b/univnautes_idp/urls_public.py
@@ -1,12 +1,19 @@
from django.conf.urls import patterns, url, include
-from django.views.generic import TemplateView, RedirectView
+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'^$', TemplateView.as_view(template_name='univnautes-idp/homepage.html')),
+ 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'),