from django.conf.urls import patterns, url

from djproxy.urls import generate_routes
from test_views import LocalProxy, index


urlpatterns = patterns(
    '',
    url(r'^some/content/.*$', index, name='index'),
    url(r'^local_proxy/(?P<url>.*)$', LocalProxy.as_view(), name='proxy')
) + generate_routes({
    'service_one': {
        'base_url': 'https://yahoo.com/',
        'prefix': 'yahoo/'
    },
    'service_two': {
        'base_url': 'https://google.com/',
        'prefix': 'google/'
    }
})

from django.conf.urls import patterns, url

from djproxy.urls import generate_routes
from test_views import LocalProxy, index


urlpatterns = patterns(
    '',
    url(r'^some/content/.*$', index, name='index'),
    url(r'^local_proxy/(?P<url>.*)$', LocalProxy.as_view(), name='proxy')
) + generate_routes({
    'service_one': {
        'base_url': 'https://yahoo.com/',
        'prefix': 'yahoo/'
    },
    'service_two': {
        'base_url': 'https://www.google.com/',
        'prefix': 'google/'
    }
})

Add www to test google config
Add www to test google config

This makes it work right for google.com sub pages when testing via a browser.
