from django.conf.urls.defaults import patterns, url

from nhs.raw.views import Ratio, Drug


urlpatterns = patterns(
    '',
    url(r'/ratio/(?P<bucket1>[0-9A-Z]+)/(?P<bucket2>[0-9A-Z]+)/ratio.zip$',
        Ratio.as_view(), name='rawcompare'),

    url(r'/drug/percapitamap/ccg/(?P<bnf_code>[0-9A-Z]+)/percap.zip$',
        Drug.as_view(), name='rawdrug'),
    )

from django.conf.urls.defaults import patterns, url

from nhs.raw.views import Ratio, Drug


urlpatterns = patterns(
    '',
    url(r'/ratio/(?P<bucket1>[0-9A-Z]+)/(?P<bucket2>[0-9A-Z]+)/ratio.zip$',
        Ratio.as_view(), name='rawcompare'),

    url(r'/drug/(?P<bnf_code>[0-9A-Z]+)/percap.zip$',
        Drug.as_view(), name='rawdrug'),
    )

Update URls for raw download.
Update URls for raw download.

  from django.conf.urls.defaults import patterns, url
  
  from nhs.raw.views import Ratio, Drug
  
  
  urlpatterns = patterns(
      '',
      url(r'/ratio/(?P<bucket1>[0-9A-Z]+)/(?P<bucket2>[0-9A-Z]+)/ratio.zip$',
          Ratio.as_view(), name='rawcompare'),
  
-     url(r'/drug/percapitamap/ccg/(?P<bnf_code>[0-9A-Z]+)/percap.zip$',
+     url(r'/drug/(?P<bnf_code>[0-9A-Z]+)/percap.zip$',
          Drug.as_view(), name='rawdrug'),
      )
  
Update URls for raw download.
## Code Before:
from django.conf.urls.defaults import patterns, url

from nhs.raw.views import Ratio, Drug


urlpatterns = patterns(
    '',
    url(r'/ratio/(?P<bucket1>[0-9A-Z]+)/(?P<bucket2>[0-9A-Z]+)/ratio.zip$',
        Ratio.as_view(), name='rawcompare'),

    url(r'/drug/percapitamap/ccg/(?P<bnf_code>[0-9A-Z]+)/percap.zip$',
        Drug.as_view(), name='rawdrug'),
    )

## Instruction:
Update URls for raw download.
## Code After:
from django.conf.urls.defaults import patterns, url

from nhs.raw.views import Ratio, Drug


urlpatterns = patterns(
    '',
    url(r'/ratio/(?P<bucket1>[0-9A-Z]+)/(?P<bucket2>[0-9A-Z]+)/ratio.zip$',
        Ratio.as_view(), name='rawcompare'),

    url(r'/drug/(?P<bnf_code>[0-9A-Z]+)/percap.zip$',
        Drug.as_view(), name='rawdrug'),
    )
