+if 'django_cas_ng' in settings.INSTALLED_APPS:
+ urlpatterns += patterns('',
+ (r'^accounts/login/$', 'django_cas_ng.views.login'),
+ (r'^accounts/logout/$', 'django_cas_ng.views.logout'),
+ (r'^admin/login/$', 'django_cas_ng.views.login'),
+ (r'^admin/logout/$', 'django_cas_ng.views.logout'),
+ )
+
+urlpatterns += patterns('',
+ url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
+ url(r'^admin/', include(admin.site.urls)),
+)
+
+urlpatterns += i18n_patterns(