
from django.conf.urls import patterns
from django.conf.urls import url
from django.views.decorators.cache import never_cache

from mama_cas.views import login
from mama_cas.views import logout
from mama_cas.views import validate
from mama_cas.views import service_validate
from mama_cas.views import proxy_validate
from mama_cas.views import proxy


urlpatterns = patterns('',
    url(r'^cas/login/$',
        never_cache(login),
        {'template_name': 'mama_cas/login.html'},
        name='cas_login'),
    url(r'^cas/logout/$',
        never_cache(logout),
        {'template_name': 'mama_cas/logout.html'},
        name='cas_logout'),
    url(r'^cas/validate/$',
        never_cache(validate),
        name='cas_validate'),
    url(r'^cas/serviceValidate/$',
        never_cache(service_validate),
        name='cas_service_validate'),
    url(r'^cas/proxyValidate/$',
        never_cache(proxy_validate),
        name='cas_proxy_validate'),
    url(r'^cas/proxy/$',
        never_cache(proxy),
        name='cas_proxy'),
)


from django.conf.urls import patterns
from django.conf.urls import url
from django.views.decorators.cache import never_cache

from mama_cas.views import login
from mama_cas.views import logout
from mama_cas.views import validate
from mama_cas.views import service_validate
from mama_cas.views import proxy_validate
from mama_cas.views import proxy


urlpatterns = patterns('',
    url(r'^login/$',
        never_cache(login),
        {'template_name': 'mama_cas/login.html'},
        name='cas_login'),
    url(r'^logout/$',
        never_cache(logout),
        {'template_name': 'mama_cas/logout.html'},
        name='cas_logout'),
    url(r'^validate/$',
        never_cache(validate),
        name='cas_validate'),
    url(r'^serviceValidate/$',
        never_cache(service_validate),
        name='cas_service_validate'),
    url(r'^proxyValidate/$',
        never_cache(proxy_validate),
        name='cas_proxy_validate'),
    url(r'^proxy/$',
        never_cache(proxy),
        name='cas_proxy'),
)

Remove prefix from URL paths
Remove prefix from URL paths

This path information should be set by the including project.

  
  from django.conf.urls import patterns
  from django.conf.urls import url
  from django.views.decorators.cache import never_cache
  
  from mama_cas.views import login
  from mama_cas.views import logout
  from mama_cas.views import validate
  from mama_cas.views import service_validate
  from mama_cas.views import proxy_validate
  from mama_cas.views import proxy
  
  
  urlpatterns = patterns('',
-     url(r'^cas/login/$',
+     url(r'^login/$',
          never_cache(login),
          {'template_name': 'mama_cas/login.html'},
          name='cas_login'),
-     url(r'^cas/logout/$',
+     url(r'^logout/$',
          never_cache(logout),
          {'template_name': 'mama_cas/logout.html'},
          name='cas_logout'),
-     url(r'^cas/validate/$',
+     url(r'^validate/$',
          never_cache(validate),
          name='cas_validate'),
-     url(r'^cas/serviceValidate/$',
+     url(r'^serviceValidate/$',
          never_cache(service_validate),
          name='cas_service_validate'),
-     url(r'^cas/proxyValidate/$',
+     url(r'^proxyValidate/$',
          never_cache(proxy_validate),
          name='cas_proxy_validate'),
-     url(r'^cas/proxy/$',
+     url(r'^proxy/$',
          never_cache(proxy),
          name='cas_proxy'),
  )
  
Remove prefix from URL paths
## Code Before:

from django.conf.urls import patterns
from django.conf.urls import url
from django.views.decorators.cache import never_cache

from mama_cas.views import login
from mama_cas.views import logout
from mama_cas.views import validate
from mama_cas.views import service_validate
from mama_cas.views import proxy_validate
from mama_cas.views import proxy


urlpatterns = patterns('',
    url(r'^cas/login/$',
        never_cache(login),
        {'template_name': 'mama_cas/login.html'},
        name='cas_login'),
    url(r'^cas/logout/$',
        never_cache(logout),
        {'template_name': 'mama_cas/logout.html'},
        name='cas_logout'),
    url(r'^cas/validate/$',
        never_cache(validate),
        name='cas_validate'),
    url(r'^cas/serviceValidate/$',
        never_cache(service_validate),
        name='cas_service_validate'),
    url(r'^cas/proxyValidate/$',
        never_cache(proxy_validate),
        name='cas_proxy_validate'),
    url(r'^cas/proxy/$',
        never_cache(proxy),
        name='cas_proxy'),
)

## Instruction:
Remove prefix from URL paths
## Code After:

from django.conf.urls import patterns
from django.conf.urls import url
from django.views.decorators.cache import never_cache

from mama_cas.views import login
from mama_cas.views import logout
from mama_cas.views import validate
from mama_cas.views import service_validate
from mama_cas.views import proxy_validate
from mama_cas.views import proxy


urlpatterns = patterns('',
    url(r'^login/$',
        never_cache(login),
        {'template_name': 'mama_cas/login.html'},
        name='cas_login'),
    url(r'^logout/$',
        never_cache(logout),
        {'template_name': 'mama_cas/logout.html'},
        name='cas_logout'),
    url(r'^validate/$',
        never_cache(validate),
        name='cas_validate'),
    url(r'^serviceValidate/$',
        never_cache(service_validate),
        name='cas_service_validate'),
    url(r'^proxyValidate/$',
        never_cache(proxy_validate),
        name='cas_proxy_validate'),
    url(r'^proxy/$',
        never_cache(proxy),
        name='cas_proxy'),
)
