from django.views.generic import TemplateView # from django.views.generic import RedirectView from registration.backends.default.views import RegistrationView from registration.backends.default.views import ActivationView from jsonrpc import jsonrpc_site # from gnowsys_ndf.ndf.forms import * from gnowsys_ndf.settings import GSTUDIO_SITE_NAME, GSTUDIO_USERNAME_SELECTION_WIDGET, GSTUDIO_OER_GROUPS from gnowsys_ndf.ndf.views.email_registration import password_reset_email, password_reset_error, GstudioEmailRegistrationForm from gnowsys_ndf.ndf.forms import UserChangeform, UserResetform from gnowsys_ndf.ndf.views.home import homepage, landing_page from gnowsys_ndf.ndf.views.methods import tag_info from gnowsys_ndf.ndf.views.custom_app_view import custom_app_view, custom_app_new_view from gnowsys_ndf.ndf.views import rpc_resources if GSTUDIO_SITE_NAME.lower() == 'clix': login_template = 'registration/login_clix.html' logout_template = "ndf/landing_page_clix_oer.html" else: login_template = 'registration/login.html' logout_template = 'registration/logout.html' urlpatterns = patterns( '', (r'^i18n/', include('django.conf.urls.i18n')), (r'^pref_lang/$', include('gnowsys_ndf.ndf.urls.languagepref')), # gstudio admin url's (r'^admin/', include('gnowsys_ndf.ndf.urls.gstudio_admin')), # --mobwrite-- commented for time being
# from django.views.generic import RedirectView from registration.backends.default.views import RegistrationView from registration.backends.default.views import ActivationView from jsonrpc import jsonrpc_site # from gnowsys_ndf.ndf.forms import * from gnowsys_ndf.settings import GSTUDIO_SITE_NAME,GSTUDIO_CLIX_REGISTRATION_TEMPLATE from gnowsys_ndf.ndf.views.email_registration import password_reset_email, password_reset_error, GstudioEmailRegistrationForm from gnowsys_ndf.ndf.forms import UserChangeform, UserResetform from gnowsys_ndf.ndf.views.home import homepage, landing_page from gnowsys_ndf.ndf.views.methods import tag_info from gnowsys_ndf.ndf.views.custom_app_view import custom_app_view, custom_app_new_view from gnowsys_ndf.ndf.views import rpc_resources if GSTUDIO_SITE_NAME.lower() == 'clix': login_template = 'registration/login_clix.html' else: login_template = 'registration/login.html' if GSTUDIO_CLIX_REGISTRATION_TEMPLATE == True: registeration_template = 'registration/login_clix_school.html' else: registeration_template = 'registration/registration_form.html' admin.autodiscover() urlpatterns = patterns('',