# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. import logging from django.conf import settings try: from django.conf.urls import patterns, url except ImportError: from django.conf.urls.defaults import patterns, url from django.contrib.auth.views import logout from django.core.exceptions import ImproperlyConfigured from django_browserid.util import import_from_setting logger = logging.getLogger(__name__) try: Verify = import_from_setting('BROWSERID_VERIFY_CLASS') except ImproperlyConfigured as e: logger.info('Loading BROWSERID_VERIFY_CLASS failed: {0}.\nFalling back to ' 'default.'.format(e)) from django_browserid.views import Verify urlpatterns = patterns( '', url(r'^login/', Verify.as_view(), name='browserid_login'), url(r'^logout/', logout, {'next_page': getattr(settings, 'LOGOUT_REDIRECT_URL', '/')}, name='browserid_logout'))
""" This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. """ from django.conf.urls.defaults import patterns, url from django_browserid.views import Verify urlpatterns = patterns('', url('^browserid/verify/', Verify.as_view(), name='browserid_verify') )
from django.conf.urls.defaults import patterns, url from django_browserid.views import Verify urlpatterns = patterns('', url('^browserid/verify/', Verify.as_view(), name='browserid_verify') )
""" This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. """ from django.conf.urls.defaults import patterns, url from django_browserid.views import Verify urlpatterns = patterns( '', url('^browserid/verify/', Verify.as_view(), name='browserid_verify'))
# file, You can obtain one at http://mozilla.org/MPL/2.0/. import logging from django.conf import settings try: from django.conf.urls import patterns, url except ImportError: from django.conf.urls.defaults import patterns, url from django.contrib.auth.views import logout from django.core.exceptions import ImproperlyConfigured from django_browserid.util import import_from_setting logger = logging.getLogger(__name__) try: Verify = import_from_setting('BROWSERID_VERIFY_CLASS') except ImproperlyConfigured as e: logger.info('Loading BROWSERID_VERIFY_CLASS failed: {0}.\nFalling back to ' 'default.'.format(e)) from django_browserid.views import Verify urlpatterns = patterns('', url(r'^login/', Verify.as_view(), name='browserid_login'), url(r'^logout/', logout, {'next_page': getattr(settings, 'LOGOUT_REDIRECT_URL', '/')}, name='browserid_logout') )
0.5, 'monthly'), } urlpatterns = patterns( '', (r'', include('%s.base.urls' % PROJECT_MODULE)), (r'', include('%s.intro.urls' % PROJECT_MODULE)), (r'', include('%s.person.urls' % PROJECT_MODULE)), (r'', include('%s.event.urls' % PROJECT_MODULE)), (r'', include('%s.product.urls' % PROJECT_MODULE)), (r'', include('%s.newsletter.urls' % PROJECT_MODULE)), (r'', include('%s.thememaker.urls' % PROJECT_MODULE)), url(r'^login/redirect$', login_redirect, name='login.redirect'), url(r'^logout/?$', 'django.contrib.auth.views.logout', {'next_page': '/'}, name='intro.logout'), url(r'^browserid/browserid/verify/?$', xframe_allow(Verify.as_view()), name='browserid_verify'), # url(r'^browserid/', include('django_browserid.urls')), url(r'', include('social_auth.urls')), ('^media/uploads/(?P<path>.*)$', redirect_to, {'url': '/static/uploads/%(path)s'}), ('^media/share/(?P<path>.*)$', redirect_to, {'url': '/static/share/%(path)s'}), (r'^admin/', include(admin.site.urls)), # Generate a robots.txt ( r'^robots\.txt$', lambda r: HttpResponse( "User-agent: *\n%s: /" % 'Allow' if ENGAGE_ROBOTS else 'Disallow', mimetype="text/plain" ) ), (r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps})