예제 #1
0
파일: urls.py 프로젝트: Code4SA/pombola
    # specials
    url(r'^parties', 'parties', name='parties'),

    # Ajax select
    url(r'^ajax_select/', include('ajax_select.urls')),
)

urlpatterns += patterns('pombola.core.views',
    url(r'^status/memcached/',       'memcached_status', name='memcached_status'),
)

if settings.POPIT_API_URL:
    # Add the dynamically generated API help page
    urlpatterns.append(
        url(r'^help/api', HelpApiView.as_view(), name='help-api')
    )

# Make it easy to see the various error pages without having to fiddle with the
# STAGING settings.
urlpatterns += patterns('',
    url(r'^status/down/', TemplateView.as_view(template_name='down.html') ),
    url(r'^status/404/',  TemplateView.as_view(template_name='404.html') ),
    url(r'^status/500/',  TemplateView.as_view(template_name='500.html') ),
)


# We handle the robots here rather than as a static file so that we can send
# different content on a staging server. We don't use direct_to_template as we
# want to set some caching headers too.
urlpatterns += patterns('pombola.core.views',
예제 #2
0
    # specials
    url(r'^parties', 'parties', name='parties'),

    # Ajax select
    url(r'^ajax_select/', include('ajax_select.urls')),
)

urlpatterns += patterns(
    'pombola.core.views',
    url(r'^status/memcached/', 'memcached_status', name='memcached_status'),
)

if settings.POPIT_API_URL:
    # Add the dynamically generated API help page
    urlpatterns.append(url(r'^help/api', HelpApiView.as_view()))

# Make it easy to see the various error pages without having to fiddle with the
# STAGING settings.
urlpatterns += patterns(
    '',
    url(r'^status/down/', TemplateView.as_view(template_name='down.html')),
    url(r'^status/404/', TemplateView.as_view(template_name='404.html')),
    url(r'^status/500/', TemplateView.as_view(template_name='500.html')),
)

# We handle the robots here rather than as a static file so that we can send
# different content on a staging server. We don't use direct_to_template as we
# want to set some caching headers too.
urlpatterns += patterns(
    'pombola.core.views',
예제 #3
0
    # specials
    url(r'^parties', parties, name='parties'),

    # Ajax select
    url(r'^ajax_select/', include('ajax_select.urls')),
]

urlpatterns += (url(r'^status/memcached/',
                    memcached_status,
                    name='memcached_status'), )

if settings.POPIT_API_URL:
    # Add the dynamically generated API help page
    urlpatterns.append(
        url(r'^help/api', HelpApiView.as_view(), name='help-api'))

# Make it easy to see the various error pages without having to fiddle with the
# STAGING settings.
urlpatterns += (
    url(r'^status/down/', TemplateView.as_view(template_name='down.html')),
    url(r'^status/404/', TemplateView.as_view(template_name='404.html')),
    url(r'^status/500/', TemplateView.as_view(template_name='500.html')),
)

# We handle the robots here rather than as a static file so that we can send
# different content on a staging server. We don't use direct_to_template as we
# want to set some caching headers too.
urlpatterns += (url(r'robots.txt', robots), )

# A URL for testing jQuery UI components:
예제 #4
0
파일: urls.py 프로젝트: Hutspace/odekro
    # specials
    url(r'^parties', 'parties', name='parties'),

    # Ajax select
    url(r'^ajax_select/', include('ajax_select.urls')),
)

urlpatterns += patterns('pombola.core.views',
    url(r'^status/memcached/',       'memcached_status', name='memcached_status'),
)

if settings.POPIT_API_URL:
    # Add the dynamically generated API help page
    urlpatterns.append(
        url(r'^help/api', HelpApiView.as_view())
    )

# Make it easy to see the various error pages without having to fiddle with the
# STAGING settings.
urlpatterns += patterns('',
    url(r'^status/down/', TemplateView.as_view(template_name='down.html') ),
    url(r'^status/404/',  TemplateView.as_view(template_name='404.html') ),
    url(r'^status/500/',  TemplateView.as_view(template_name='500.html') ),
)


# We handle the robots here rather than as a static file so that we can send
# different content on a staging server. We don't use direct_to_template as we
# want to set some caching headers too.
urlpatterns += patterns('pombola.core.views',