from coffin.conf.urls.defaults import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Examples: url(r'^$', 'psdb.views.home', name='home'), url(r'^organizations/', include('organizations.urls')), url(r'^pulse_sequences/', include('pulse_sequences.urls')), # Uncomment the admin/doc line below to enable admin documentation: # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: url(r'^admin/', include(admin.site.urls)), )
# -*- coding: utf-8 -*- '''Convenience urls for OAuth token handling.''' from coffin.conf.urls.defaults import patterns urlpatterns = patterns( 'baph.piston.oauth.views', (r'^oauth/request_token/$', 'get_request_token'), (r'^oauth/authorize/$', 'authorize_request_token'), (r'^oauth/access_token/$', 'get_access_token'), )
# -*- coding: utf-8 -*- '''URLs for the test API.''' from coffin.conf.urls.defaults import include, patterns from piston.authentication.oauth import OAuthAuthentication from piston.resource import Resource from .handlers import HelloHandler auth_three = OAuthAuthentication(realm='Test API') auth_two = OAuthAuthentication(realm='Test API', two_legged=True) three_handler = Resource(handler=HelloHandler, authentication=auth_three) two_handler = Resource(handler=HelloHandler, authentication=auth_two) urlpatterns = patterns('', (r'^three/$', three_handler, {'emitter_format': 'json'}), (r'^two/$', two_handler, {'emitter_format': 'json'}), (r'', include('baph.piston.oauth.urls')), )
# -*- coding: utf-8 -*- from coffin.conf.urls.defaults import patterns, url urlpatterns = patterns('baph.socialmedia.twitter.auth.views', url(r'^register/$', 'twitter_registration', name='twitter_register'), url(r'^register/complete/$', 'complete_registration', name='twitter_register_complete'), url(r'^login/$', 'login', name='twitter_login'), url(r'^login/complete/$', 'complete_login', name='twitter_login_complete'), )
# -*- coding: utf-8 -*- from coffin.conf.urls.defaults import patterns, url urlpatterns = patterns( 'baph.socialmedia.twitter.auth.views', url(r'^register/$', 'twitter_registration', name='twitter_register'), url(r'^register/complete/$', 'complete_registration', name='twitter_register_complete'), url(r'^login/$', 'login', name='twitter_login'), url(r'^login/complete/$', 'complete_login', name='twitter_login_complete'), )
# -*- coding: utf-8 -*- '''URLs for the test API.''' from coffin.conf.urls.defaults import include, patterns from piston.authentication.oauth import OAuthAuthentication from piston.resource import Resource from .handlers import HelloHandler auth_three = OAuthAuthentication(realm='Test API') auth_two = OAuthAuthentication(realm='Test API', two_legged=True) three_handler = Resource(handler=HelloHandler, authentication=auth_three) two_handler = Resource(handler=HelloHandler, authentication=auth_two) urlpatterns = patterns( '', (r'^three/$', three_handler, { 'emitter_format': 'json' }), (r'^two/$', two_handler, { 'emitter_format': 'json' }), (r'', include('baph.piston.oauth.urls')), )
from coffin.conf.urls.defaults import patterns urlpatterns = patterns('test_ssl', (r'^secure/$', 'secure_view', {'SSL': True}), )
from coffin.conf.urls.defaults import patterns urlpatterns = patterns('baph.auth.views', (r'^login/$', 'login', {'SSL': True}), (r'^logout/$', 'logout'), (r'^password_reset/$', 'password_reset'), (r'^password_reset/done/$', 'password_reset_done'), (r'^reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$', 'password_reset_confirm', {'SSL': True}), (r'^reset/done/$', 'password_reset_complete'), )
urlpatterns = patterns('', url(r'^activate/complete/$', direct_to_template, {'template': 'registration/activation_complete.html'}, name='registration_activation_complete'), # Activation keys get matched by \w+ instead of the more specific # [a-fA-F0-9]{40} because a bad activation key should still get to the # view; that way it can return a sensible "invalid key" message instead of # a confusing 404. url(r'^activate/(?P<activation_key>\w+)/$', activate, {'backend': BACKEND}, name='registration_activate'), url(r'^register/$', register, { 'backend': BACKEND, 'SSL': True, }, name='registration_register'), url(r'^register/complete/$', direct_to_template, {'template': 'registration/registration_complete.html'}, name='registration_complete'), url(r'^register/closed/$', direct_to_template, {'template': 'registration/registration_closed.html'}, name='registration_disallowed'), (r'', include('baph.auth.urls')), )
# -*- coding: utf-8 -*- '''Convenience urls for OAuth token handling.''' from coffin.conf.urls.defaults import patterns urlpatterns = patterns('baph.piston.oauth.views', (r'^oauth/request_token/$', 'get_request_token'), (r'^oauth/authorize/$', 'authorize_request_token'), (r'^oauth/access_token/$', 'get_access_token'), )
# -*- coding: utf-8 -*- from baph.auth.registration.views import register from coffin.conf.urls.defaults import patterns, url from django.conf import settings FB_CONNECT = 'baph.socialmedia.facebook.connect' urlpatterns = patterns( '', url(r'^register/$', register, { 'backend': '%s.FacebookConnectBackend' % FB_CONNECT, 'extra_context': { 'fb_app_id': settings.FACEBOOK_APP_ID, 'fb_extra_perms': getattr(settings, 'FACEBOOK_EXTRA_PERMISSIONS', None), }, 'template_name': 'fb_connect/register.html', }, name='facebook_register'), url(r'^login/$', '%s.views.facebook_login' % FB_CONNECT, name='facebook_login'), )
from coffin.conf.urls.defaults import patterns, include, url from pulse_sequences import models # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', url(r'^$', 'pulse_sequences.views.ps_main', name='ps_main'), # url( # r'^(?P<slug>[a-z0-9\-]+)/$', # 'pulse_sequences.views.database_page', # name='database_page' # ), # url( # r'^(?P<slug>[a-z0-9\-]+)-(?P<device_type>[a-z])(?P<id>\d+)/$', # 'pulse_sequences.views.repo_page', # name='repo_page' # ), # Uncomment the admin/doc line below to enable admin documentation: # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: # url(r'^admin/', include(admin.site.urls)), )
urlpatterns = patterns('', # Examples: url(r'^$', 'organizations.views.org_main', name='org_main'), url( r'^(?P<org_type>(%s))/$' % ORG_TYPES, 'organizations.views.org_list', name='org_list' ), url( r'^(?P<id>\d+)/(?P<slug>[a-z0-9\-]+)/$', 'organizations.views.org_page', name='org_page' ), url( # r'^create_lab/\?org_type=(?P<org_type>[a-z0-9\-]+)/$', r'^create_lab/', 'organizations.views.create_lab', name='create_lab' ), url( r'^create_appointment', 'organizations.views.create_appointment', name='create_appointment' ), url( r'^save_org_description', 'organizations.views.save_org_description', name='save_org_description' ), url( r'^get_org_description', 'organizations.views.get_org_description', name='get_org_description' ), # Uncomment the admin/doc line below to enable admin documentation: # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: # url(r'^admin/', include(admin.site.urls)), )