Skip to content

mrash14/decorate_url

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django decorate url

Django decorate URL

in python you can wrap function to other like this

@wrapper
def function(..):
    ...

by this syntax any time call function wrapped to wrapper function

in django you can use this syntax for views required login

by this module you can wrap whole url into a method like this

Example Usage:

from decorate_url import decorate_url as url

urlpatterns = patterns('',
    url(r'^', include('Main.urls'), wrap=never_cache),
)

About

add url wrapping in django

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%