Beispiel #1
0
# -*- 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'),
)
Beispiel #2
0
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)),
)
Beispiel #3
0
# -*- 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'),
)
Beispiel #4
0
If you'd like to customize the behavior (e.g., by passing extra
arguments to the various views) or split up the URLs, feel free to set
up your own URL patterns for these views instead.
'''

from baph.auth.registration.views import activate, register
from coffin.conf.urls.defaults import include, patterns, url
from coffin.views.generic.simple import direct_to_template

BACKEND = 'baph.auth.registration.backends.default.DefaultBackend'


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,
        },
Beispiel #5
0
# -*- 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'),
)
Beispiel #6
0
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)),
)
Beispiel #7
0
from coffin.conf.urls.defaults import patterns, include, url
from organizations import models

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

ORG_TYPES = '|'.join(dict(models.ORG_TYPE_URL2ID).keys())

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',