diff options
author | Kabir Kukreti <kabir@gnowledge.org> | 2012-04-20 19:24:51 +0530 |
---|---|---|
committer | Kabir Kukreti <kabir@gnowledge.org> | 2012-04-20 19:24:51 +0530 |
commit | 4a120db766058797ea19313d0f691df150782bc1 (patch) | |
tree | d02f58e9fd07a71b346a959a6cabbe0182834ab5 /demo | |
parent | 39e96894e6df7c0a1c3bf58b37d5b3c65a3f2e3f (diff) | |
download | gnowsys-4a120db766058797ea19313d0f691df150782bc1.tar.gz |
Django registration changed to mae registered users staff users with limted privilidges
Diffstat (limited to 'demo')
-rw-r--r-- | demo/settings.py | 2 | ||||
-rw-r--r-- | demo/urls.py | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/demo/settings.py b/demo/settings.py index f184257..a325258 100644 --- a/demo/settings.py +++ b/demo/settings.py @@ -178,6 +178,8 @@ INSTALLED_APPS = ( ) +if DEBUG: + EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend' from gstudio.xmlrpc import GSTUDIO_XMLRPC_METHODS diff --git a/demo/urls.py b/demo/urls.py index ce2e623..e74f885 100644 --- a/demo/urls.py +++ b/demo/urls.py @@ -75,6 +75,10 @@ from gstudio.sitemaps import MetatypeSitemap from gstudio.sitemaps import AuthorSitemap from objectapp.sitemaps import GbobjectSitemap +# import gstudio.regbackend +from gstudio.forms import * +from registration.views import register + admin.autodiscover() @@ -95,7 +99,10 @@ urlpatterns = patterns( url(r'^objects/admin/', include(admin.site.urls)), url(r'^nodetypes/admin/', include(admin.site.urls)), url(r'^grappelli/', include('grappelli.urls')), + url(r'^accounts/register/$', register, {'backend': 'gstudio.regbackend.MyBackend','form_class': UserRegistrationForm}, name='registration_register'), + url(r'^accounts/', include('registration.urls')), + url(r'^$', 'django.views.generic.simple.redirect_to', { 'template': 'index.html' }, 'index'), ) |